Merge pull request #341 from abouvier/patch-1

cmake: correctly use find_dependency
This commit is contained in:
Adam Sawicki 2023-07-04 15:24:42 +02:00 committed by GitHub
commit d9a2e4641b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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@")