diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index ad082fee70..710b2b0631 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -319,6 +319,9 @@ CPMAddPackage( FIND_PACKAGE_ARGUMENTS "CONFIG" ) +set(VulkanMemoryAllocator_SOURCE_DIR "${VulkanMemoryAllocator_SOURCE_DIR}" PARENT_SCOPE) +set(VulkanMemoryAllocator_ADDED "${VulkanMemoryAllocator_ADDED}" PARENT_SCOPE) + if (NOT TARGET LLVM::Demangle) add_library(demangle demangle/ItaniumDemangle.cpp) target_include_directories(demangle PUBLIC ./demangle) diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt index 6d0c7e9634..7e40e79d8e 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt @@ -329,6 +329,10 @@ target_link_options(video_core PRIVATE ${FFmpeg_LDFLAGS}) add_dependencies(video_core host_shaders) target_include_directories(video_core PRIVATE ${HOST_SHADERS_INCLUDE}) +if (VulkanMemoryAllocator_ADDED) + target_include_directories(video_core PUBLIC ${VulkanMemoryAllocator_SOURCE_DIR}/include) +endif() + target_link_libraries(video_core PRIVATE sirit Vulkan::Headers VulkanUtilityHeaders) if (ENABLE_NSIGHT_AFTERMATH)