GPUOpen-LibrariesAndSDKs / VulkanMemoryAllocator

Easy to integrate Vulkan memory allocation library
MIT License
2.63k stars 359 forks source link

cmake: add package version file #425

Closed abouvier closed 4 months ago

abouvier commented 4 months ago

Like in Vulkan-Headers. It allows specifying version constraint: find_package(VulkanMemoryAllocator 3.1.0 REQUIRED)

adam-sawicki-a commented 4 months ago

Thank you for this contribution.

adam-sawicki-a commented 4 months ago

There is an error after merging:

CMake Error at C:/Program Files/CMake/share/cmake-3.29/Modules/WriteBasicConfigVersionFile.cmake:43 (message):
  No VERSION specified for WRITE_BASIC_CONFIG_VERSION_FILE()
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.29/Modules/CMakePackageConfigHelpers.cmake:379 (write_basic_config_version_file)
  CMakeLists.txt:23 (write_basic_package_version_file)
adam-sawicki-a commented 4 months ago

I hopefully fixed it.