diff options
| author | Alexandre Almeida <[email protected]> | 2024-03-04 15:59:26 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-04 19:59:26 +0100 |
| commit | 85a46e42bd12a0973a22b48785b6c878b5bc58d6 (patch) | |
| tree | 60b09b51137badbed07af7574574ebe7b377ec94 /CMakeLists.txt | |
| parent | 6e9dcdb599eb8548f49f2ae1330d5a752ed80530 (diff) | |
| download | raylib-85a46e42bd12a0973a22b48785b6c878b5bc58d6.tar.gz raylib-85a46e42bd12a0973a22b48785b6c878b5bc58d6.zip | |
CMake: Remove USE_WAYLAND option (#3851)
* CMake: Remove USE_WAYLAND option
* Consistency fix
* Fix oversight
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 |
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) |
