mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-10 02:31:48 +00:00
Link VulkanMemoryAllocator to Vulkan only if static linking is enabled
This commit is contained in:
parent
8111c12b36
commit
191c64c8ee
@ -15,12 +15,10 @@ set_target_properties(
|
||||
|
||||
target_include_directories(VulkanMemoryAllocator PUBLIC ${PROJECT_SOURCE_DIR}/include)
|
||||
|
||||
target_link_libraries(
|
||||
VulkanMemoryAllocator
|
||||
|
||||
PUBLIC
|
||||
Vulkan::Vulkan
|
||||
)
|
||||
# Only link to Vulkan if static linking is used
|
||||
if (NOT ${VMA_DYNAMIC_VULKAN_FUNCTIONS})
|
||||
target_link_libraries(VulkanMemoryAllocator PUBLIC Vulkan::Vulkan)
|
||||
endif()
|
||||
|
||||
target_compile_definitions(
|
||||
VulkanMemoryAllocator
|
||||
|
Loading…
Reference in New Issue
Block a user