From 4ea57daf39678d551b31277cad6aa8a720ae4ab3 Mon Sep 17 00:00:00 2001 From: Charles the Thobe <95266557+CharlesThobe@users.noreply.github.com> Date: Tue, 2 May 2023 09:41:04 +0300 Subject: [PATCH] CMake: display warning when building without Wayland on systems that support Wayland --- CMakeLists.txt | 2 +- src/common/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ad201f9c2..a7b709f73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,7 @@ if(SUPPORTS_X11) option(USE_X11 "Support X11 window system" ON) endif() if(SUPPORTS_WAYLAND) - option(USE_WAYLAND "Support Wayland window system" OFF) + option(USE_WAYLAND "Support Wayland window system" ON) endif() if((LINUX OR FREEBSD) OR ANDROID) option(USE_EGL "Support EGL OpenGL context creation" ON) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 44036ab25..370a89849 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -125,6 +125,8 @@ endif() if(USE_WAYLAND) 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() if(USE_DRMKMS)