diff --git a/config/lib/VulkanMemoryAllocator.cmake b/config/lib/VulkanMemoryAllocator.cmake index aeca2ad11e13f451b385601c388ea4e64afd2038..6dc0572bffc074b62da01239e995c5d7ce3811b5 100644 --- a/config/lib/VulkanMemoryAllocator.cmake +++ b/config/lib/VulkanMemoryAllocator.cmake @@ -1,6 +1,19 @@ if ((EXISTS "${vkcv_lib_path}/VulkanMemoryAllocator") AND (EXISTS "${vkcv_lib_path}/VulkanMemoryAllocator-Hpp")) + set(VMA_BUILD_SAMPLE OFF CACHE INTERNAL "") + set(VMA_BUILD_SAMPLE_SHADERS OFF CACHE INTERNAL "") + set(VMA_BUILD_REPLAY OFF CACHE INTERNAL "") + + set(VMA_RECORDING_ENABLED OFF CACHE INTERNAL "") + set(VMA_USE_STL_CONTAINERS OFF CACHE INTERNAL "") + set(VMA_STATIC_VULKAN_FUNCTIONS ON CACHE INTERNAL "") + set(VMA_DYNAMIC_VULKAN_FUNCTIONS OFF CACHE INTERNAL "") + set(VMA_DEBUG_ALWAYS_DEDICATED_MEMORY OFF CACHE INTERNAL "") + set(VMA_DEBUG_INITIALIZE_ALLOCATIONS OFF CACHE INTERNAL "") + set(VMA_DEBUG_GLOBAL_MUTEX OFF CACHE INTERNAL "") + set(VMA_DEBUG_DONT_EXCEED_MAX_MEMORY_ALLOCATION_COUNT OFF CACHE INTERNAL "") + add_subdirectory(${vkcv_lib}/VulkanMemoryAllocator) list(APPEND vkcv_libraries VulkanMemoryAllocator)