From 85a46e42bd12a0973a22b48785b6c878b5bc58d6 Mon Sep 17 00:00:00 2001 From: Alexandre Almeida Date: Mon, 4 Mar 2024 15:59:26 -0300 Subject: CMake: Remove USE_WAYLAND option (#3851) * CMake: Remove USE_WAYLAND option * Consistency fix * Fix oversight --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3