cmake: use find_dependency

This commit is contained in:
Alexandre Bouvier 2023-05-31 06:45:45 +00:00
parent db15ce374e
commit 870bae0fca

View File

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