mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-22 15:04:34 +00:00
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:
parent
9b0fc3e7b0
commit
b48d20cc86
@ -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=$<BOOL:${VMA_STATIC_VULKAN_FUNCTIONS}>
|
||||
VMA_DYNAMIC_VULKAN_FUNCTIONS=$<BOOL:${VMA_DYNAMIC_VULKAN_FUNCTIONS}>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user