mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 12:20:07 +00:00
Merge pull request #341 from abouvier/patch-1
cmake: correctly use find_dependency
This commit is contained in:
commit
d9a2e4641b
@ -2,7 +2,11 @@
|
|||||||
|
|
||||||
include(CMakeFindDependencyMacro)
|
include(CMakeFindDependencyMacro)
|
||||||
|
|
||||||
find_package(Vulkan REQUIRED)
|
if(@VMA_STATIC_VULKAN_FUNCTIONS@)
|
||||||
|
find_dependency(Vulkan)
|
||||||
|
else()
|
||||||
|
find_dependency(VulkanHeaders)
|
||||||
|
endif()
|
||||||
|
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/VulkanMemoryAllocatorTargets.cmake")
|
include("${CMAKE_CURRENT_LIST_DIR}/VulkanMemoryAllocatorTargets.cmake")
|
||||||
check_required_components("@PROJECT_NAME@")
|
check_required_components("@PROJECT_NAME@")
|
||||||
|
Loading…
Reference in New Issue
Block a user