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.
This commit is contained in:
Juan Ramos 2023-07-11 13:18:08 -06:00
parent 9b0fc3e7b0
commit b48d20cc86
2 changed files with 3 additions and 1 deletions

View File

@ -44,6 +44,8 @@ else()
target_link_libraries(VmaSample PUBLIC Vulkan::Headers) target_link_libraries(VmaSample PUBLIC Vulkan::Headers)
endif() endif()
target_link_libraries(VmaSample PRIVATE GPUOpen::VulkanMemoryAllocator)
target_compile_definitions(VmaSample PUBLIC target_compile_definitions(VmaSample PUBLIC
VMA_STATIC_VULKAN_FUNCTIONS=$<BOOL:${VMA_STATIC_VULKAN_FUNCTIONS}> VMA_STATIC_VULKAN_FUNCTIONS=$<BOOL:${VMA_STATIC_VULKAN_FUNCTIONS}>
VMA_DYNAMIC_VULKAN_FUNCTIONS=$<BOOL:${VMA_DYNAMIC_VULKAN_FUNCTIONS}> VMA_DYNAMIC_VULKAN_FUNCTIONS=$<BOOL:${VMA_DYNAMIC_VULKAN_FUNCTIONS}>

View File

@ -95,7 +95,7 @@ include all public interface declarations. Example:
#pragma clang diagnostic ignored "-Wnullability-completeness" #pragma clang diagnostic ignored "-Wnullability-completeness"
#endif #endif
#include "../include/vk_mem_alloc.h" #include "vk_mem_alloc.h"
#ifdef __clang__ #ifdef __clang__
#pragma clang diagnostic pop #pragma clang diagnostic pop