From d69bbbe818ae46aae15683c78cd0f9716d38ff92 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 12 Oct 2023 11:11:44 -0700 Subject: [PATCH] fix Vulkan SDK include on Windows --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c87504..c6977e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,11 @@ if(NOT MSVC) set_property(TARGET Refresh PROPERTY COMPILE_FLAGS "-std=gnu99 -Wall -Wno-strict-aliasing -pedantic") endif() +# Windows is silly and we need to manually include the Vulkan SDK +if(MSVC) + target_include_directories(Refresh PUBLIC $ENV{VULKAN_SDK}/include) +endif() + # Refresh folders as includes, for other targets to consume target_include_directories(Refresh PUBLIC $