From daf55addd70584f311ad86ee388f0557ba2e7e36 Mon Sep 17 00:00:00 2001 From: Tobias Frisch <tfrisch@uni-koblenz.de> Date: Fri, 9 Jul 2021 19:10:28 +0200 Subject: [PATCH] [#59] Fix Windows CI via static linking VMA Signed-off-by: Tobias Frisch <tfrisch@uni-koblenz.de> --- config/lib/VulkanMemoryAllocator.cmake | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/lib/VulkanMemoryAllocator.cmake b/config/lib/VulkanMemoryAllocator.cmake index aeca2ad1..6dc0572b 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) -- GitLab