From b48d20cc862a447cddfc7686249d019af70b109e Mon Sep 17 00:00:00 2001 From: Juan Ramos Date: Tue, 11 Jul 2023 13:18:08 -0600 Subject: [PATCH] Fixup include of "vk_mem_alloc.h" No need to include via `../include` By linking against `GPUOpen::VulkanMemoryAllocator` the proper include directory is added to the project. --- src/CMakeLists.txt | 2 ++ src/VmaUsage.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b72bbcd..b51f1fb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -44,6 +44,8 @@ else() target_link_libraries(VmaSample PUBLIC Vulkan::Headers) endif() +target_link_libraries(VmaSample PRIVATE GPUOpen::VulkanMemoryAllocator) + target_compile_definitions(VmaSample PUBLIC VMA_STATIC_VULKAN_FUNCTIONS=$ VMA_DYNAMIC_VULKAN_FUNCTIONS=$ diff --git a/src/VmaUsage.h b/src/VmaUsage.h index 62bcd11..61f87d3 100644 --- a/src/VmaUsage.h +++ b/src/VmaUsage.h @@ -95,7 +95,7 @@ include all public interface declarations. Example: #pragma clang diagnostic ignored "-Wnullability-completeness" #endif -#include "../include/vk_mem_alloc.h" +#include "vk_mem_alloc.h" #ifdef __clang__ #pragma clang diagnostic pop