CMake: Remove USE_WAYLAND option (#3851)
* CMake: Remove USE_WAYLAND option * Consistency fix * Fix oversight
This commit is contained in:
parent
6e9dcdb599
commit
85a46e42bd
3 changed files with 10 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue