mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-14 16:58:34 +00:00
Fixed Cmake script for cases when VMA_STATIC_VULKAN_FUNCTIONS is not set
We need to statically link with Vulkan anyway, unless we use volk. VMA doesn't need it, but sample app does. Without this change, we had linker errors.
This commit is contained in:
parent
2fd73c38a1
commit
b5409a0b41
1 changed files with 2 additions and 2 deletions
|
@ -56,8 +56,8 @@ target_sources(VmaSample PRIVATE
|
|||
../include/vk_mem_alloc.h
|
||||
)
|
||||
|
||||
# Only link to Vulkan library if static linking is used, but always add Vulkan headers directory
|
||||
if(VMA_STATIC_VULKAN_FUNCTIONS)
|
||||
# Only link to Vulkan library if volk loader is not used, but always add Vulkan headers directory.
|
||||
if("${VMA_VOLK_HEADER_PATH}" STREQUAL "")
|
||||
target_link_libraries(VmaSample PUBLIC Vulkan::Vulkan)
|
||||
else()
|
||||
target_link_libraries(VmaSample PUBLIC Vulkan::Headers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue