From 25a7334b5f38ffd8f4dd61b8d60e4047e5b8ea3d Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Tue, 19 Sep 2023 02:07:46 -0600 Subject: [PATCH] Only build with Wayland if USE_WAYLAND_WSI is on. --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f07916377..3930831add 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -188,10 +188,9 @@ if(UNIX AND NOT (APPLE OR ANDROID) AND VULKAN) find_package(Wayland) if(NOT WAYLAND_FOUND) message(STATUS "Could not find Wayland libraries, disabling Wayland WSI support for Vulkan.") - else() + elseif(USE_WAYLAND_WSI) include_directories(${WAYLAND_INCLUDE_DIR}) add_definitions(-DVK_USE_PLATFORM_WAYLAND_KHR) - add_definitions(-DUSE_WAYLAND_WSI=ON) endif() if(USE_VULKAN_DISPLAY_KHR)