summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ce2de578..57719691 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,6 +39,12 @@ include(CMakeOptions.txt)
# Enforces a few environment and compiler configurations
include(BuildOptions)
+if (UNIX AND NOT APPLE)
+ if (NOT GLFW_BUILD_WAYLAND AND NOT GLFW_BUILD_X11)
+ MESSAGE(FATAL_ERROR "Cannot disable both Wayland and X11")
+ endif()
+endif()
+
# Main sources directory (the second parameter sets the output directory name to raylib)
add_subdirectory(src raylib)