Skip to content
Snippets Groups Projects
Verified Commit 675553a9 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Adjusted cmake config for VMA to work with other forks as well

parent e1bc88e9
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,11 @@
use_git_submodule("${vkcv_lib_path}/VulkanMemoryAllocator-Hpp" vma_hpp_status)
if (${vma_hpp_status})
set(VMA_HPP_PATH "${vkcv_lib_path}/VulkanMemoryAllocator-Hpp" CACHE INTERNAL "")
if (EXISTS "${vkcv_lib_path}/VulkanMemoryAllocator-Hpp/include")
set(VMA_HPP_PATH "${vkcv_lib_path}/VulkanMemoryAllocator-Hpp/include" CACHE INTERNAL "")
else()
set(VMA_HPP_PATH "${vkcv_lib_path}/VulkanMemoryAllocator-Hpp" CACHE INTERNAL "")
endif()
set(VMA_RECORDING_ENABLED OFF CACHE INTERNAL "")
set(VMA_USE_STL_CONTAINERS OFF CACHE INTERNAL "")
......@@ -16,7 +20,7 @@ if (${vma_hpp_status})
add_subdirectory(${vkcv_config_lib}/vma)
list(APPEND vkcv_libraries VulkanMemoryAllocator)
list(APPEND vkcv_includes ${vkcv_lib_path}/VulkanMemoryAllocator-Hpp)
list(APPEND vkcv_includes ${VMA_HPP_PATH})
message(${vkcv_config_msg} " VMA - ")
endif ()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment