Skip to content

Commit fe75e5f

Browse files
committed
fixup: Make sure that our own Vulkan headers are always picked up before system ones
1 parent 252cd0a commit fe75e5f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/vulkan-headers/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
add_library(VulkanHeaders INTERFACE)
2-
target_include_directories(VulkanHeaders SYSTEM INTERFACE
2+
# Non-SYSTEM so the bundled headers use -I (not -isystem). This guarantees
3+
# they are found before any system-installed Vulkan headers that other
4+
# dependencies (e.g. OpenXR) may pull in via find_package(Vulkan).
5+
target_include_directories(VulkanHeaders INTERFACE
36
"${CMAKE_CURRENT_SOURCE_DIR}/include"
47
)

0 commit comments

Comments
 (0)