#(CMake) CPM with VulkanMemoryAllocator

8 messages · Page 1 of 1 (latest)

spring pewter
#

Hey, I'm trying to use CPM to add VulkanMemoryAllocator (VMA) but when I go to link the library, it kinda hates me.

VMA docs:

find_package(VulkanMemoryAllocator CONFIG REQUIRED)
target_link_libraries(YourGameEngine PRIVATE GPUOpen::VulkanMemoryAllocator)

My usage:


CPMAddPackage("gh:GPUOpen-LibrariesAndSDKs/[email protected]")
# ... continue on down...

target_link_libraries(${PROJECT_NAME} PRIVATE fmt::fmt GPUOpen::VulkanMemoryAllocator)
# Errors out saying that VMA is "not in any export set"

For reference:
https://github.com/cpm-cmake/CPM.cmake
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator

GitHub

📦 CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management. - cpm-cmake/CPM.cmake

GitHub

Easy to integrate Vulkan memory allocation library - GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator

tacit basinBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

spring pewter
#

!howto

tacit basinBOT
#
howto

Retrieve wiki articles (alternatively /wiki)

!howto <query> [user] Retrieve wiki articles (alternatively /wiki)

spring pewter
#

That did it! Thank you

#

^

#

!solved

tacit basinBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity