CMake: Remove USE_WAYLAND option (#3851)

* CMake: Remove USE_WAYLAND option

* Consistency fix

* Fix oversight
This commit is contained in:
Alexandre Almeida 2024-03-04 15:59:26 -03:00 committed by GitHub
parent 6e9dcdb599
commit 85a46e42bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 4 deletions

View file

@ -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)