From 870bae0fcafe89d20fcc59c8b1c7096f0c5dd0da Mon Sep 17 00:00:00 2001 From: Alexandre Bouvier Date: Wed, 31 May 2023 06:45:45 +0000 Subject: [PATCH] cmake: use find_dependency --- src/cmake/Config.cmake.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cmake/Config.cmake.in b/src/cmake/Config.cmake.in index a7d7543..106befe 100644 --- a/src/cmake/Config.cmake.in +++ b/src/cmake/Config.cmake.in @@ -2,7 +2,11 @@ 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") check_required_components("@PROJECT_NAME@")