From 16f1708da21048684838c22abb43b60b4ce19e2e Mon Sep 17 00:00:00 2001 From: Dario Date: Tue, 24 Dec 2024 00:05:37 -0300 Subject: [PATCH] Exclude SDL Window macro from being defined outside of Linux. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ebec16..c2e0264 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -237,7 +237,7 @@ add_compile_definitions( IMGUI_IMPL_VULKAN_NO_PROTOTYPES ) -if (RT64_SDL_WINDOW_VULKAN) +if (CMAKE_SYSTEM_NAME MATCHES "Linux" AND RT64_SDL_WINDOW_VULKAN) add_compile_definitions("RT64_SDL_WINDOW_VULKAN") endif()