Skip to content

Commit 93d386a

Browse files
committed
Fix CMake to include headers only
1 parent dd20dc3 commit 93d386a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ option(SENTRY_WITH_GPU_INFO "Build with GPU information gathering support" ${SEN
103103

104104
# GPU info enabled - no longer requires Vulkan SDK (uses headers submodule + dynamic linking)
105105
if(SENTRY_WITH_GPU_INFO)
106-
add_subdirectory(external/vulkan-headers)
107106
message(STATUS "GPU information gathering enabled (using vulkan-headers submodule)")
108107
endif()
109108

@@ -588,7 +587,8 @@ endif()
588587

589588
# handle Vulkan headers for GPU info
590589
if(SENTRY_WITH_GPU_INFO)
591-
target_link_libraries(sentry PRIVATE Vulkan::Headers)
590+
target_include_directories(sentry PRIVATE
591+
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/external/vulkan-headers/include>")
592592
endif()
593593

594594
# apply platform libraries to sentry library

0 commit comments

Comments
 (0)