mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-24 21:10:12 +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)
|
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}>
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user