Merge pull request #2970 from CharlesThobe/patch-1
CMake: display warning when building without Wayland on systems that support Wayland
This commit is contained in:
commit
c6dc217762
|
@ -44,7 +44,7 @@ if(SUPPORTS_X11)
|
||||||
option(USE_X11 "Support X11 window system" ON)
|
option(USE_X11 "Support X11 window system" ON)
|
||||||
endif()
|
endif()
|
||||||
if(SUPPORTS_WAYLAND)
|
if(SUPPORTS_WAYLAND)
|
||||||
option(USE_WAYLAND "Support Wayland window system" OFF)
|
option(USE_WAYLAND "Support Wayland window system" ON)
|
||||||
endif()
|
endif()
|
||||||
if((LINUX OR FREEBSD) OR ANDROID)
|
if((LINUX OR FREEBSD) OR ANDROID)
|
||||||
option(USE_EGL "Support EGL OpenGL context creation" ON)
|
option(USE_EGL "Support EGL OpenGL context creation" ON)
|
||||||
|
|
|
@ -125,6 +125,8 @@ endif()
|
||||||
|
|
||||||
if(USE_WAYLAND)
|
if(USE_WAYLAND)
|
||||||
target_compile_definitions(common PRIVATE "-DUSE_WAYLAND=1")
|
target_compile_definitions(common PRIVATE "-DUSE_WAYLAND=1")
|
||||||
|
elseif(SUPPORTS_WAYLAND)
|
||||||
|
message(WARNING "Wayland support for renderers is disabled.\nDuckStation will FAIL to start on Wayland.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(USE_DRMKMS)
|
if(USE_DRMKMS)
|
||||||
|
|
Loading…
Reference in New Issue