Skip to content

Commit 816998e

Browse files
committed
test: Update cmake_using_source_directly to avoid libvulkan1 dependency
This is a similar problem to the one that volk's CMakeLists.txt used to have, and was fixed in 3f3e0cb; this test will use linked-in libvulkan1 without the change which isn't really how volk is designed to be used.
1 parent dbfeadc commit 816998e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/cmake_using_source_directly/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ endif()
3333
# Get Vulkan dependency
3434
find_package(Vulkan QUIET)
3535
if(TARGET Vulkan::Vulkan)
36-
target_link_libraries(volk_test PRIVATE Vulkan::Vulkan)
36+
# Note: We don't use target_link_libraries for Vulkan::Vulkan to avoid a static dependency on libvulkan1
37+
target_include_directories(volk_test PRIVATE ${Vulkan_INCLUDE_DIRS})
3738
elseif(DEFINED ENV{VULKAN_SDK})
3839
target_include_directories(volk_test PRIVATE "$ENV{VULKAN_SDK}/include")
3940
endif()

0 commit comments

Comments
 (0)