From f7893b0b1a35e0c3068c5bbefb3830b792dba294 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Sun, 5 Jul 2026 23:38:16 +0100 Subject: [PATCH] build(Linux): Allow building with Vulkan but without Wayland (#5377) Signed-off-by: James Le Cuirot --- cmake/compile_definitions/linux.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/compile_definitions/linux.cmake b/cmake/compile_definitions/linux.cmake index 60c903493..ed5133377 100644 --- a/cmake/compile_definitions/linux.cmake +++ b/cmake/compile_definitions/linux.cmake @@ -220,7 +220,6 @@ if(WAYLAND_FOUND) include_directories( SYSTEM ${WAYLAND_INCLUDE_DIRS} - ${CMAKE_BINARY_DIR}/generated-src ) list(APPEND PLATFORM_LIBRARIES ${WAYLAND_LIBRARIES} gbm) @@ -324,6 +323,9 @@ if (${SUNSHINE_BUILD_FLATPAK}) list(APPEND SUNSHINE_DEFINITIONS SUNSHINE_BUILD_FLATPAK=1) endif () +include_directories(SYSTEM + ${CMAKE_BINARY_DIR}/generated-src) + list(APPEND PLATFORM_TARGET_FILES "${CMAKE_SOURCE_DIR}/src/platform/linux/publish.cpp" "${CMAKE_SOURCE_DIR}/src/platform/linux/graphics.h"