From c5547ffad177145da5115587a7ce463a644ce06e Mon Sep 17 00:00:00 2001 From: Juan Ramos Date: Tue, 11 Jul 2023 12:56:32 -0600 Subject: [PATCH] cmake: Use share instead of DATADIR for CMake config files See the following discussion for context: https://discourse.cmake.org/t/what-should-the-destination-be-for-a-header-only-librarys-cmake-config-file/8473/2 NOTE: I've never seen this cause an issue before, but better safe than sorry. Also I think it reads a bit better. I recently did this for VulkanHeaders so I'd like this fixed here as well. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cfc31a3..79592f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ if (PROJECT_IS_TOP_LEVEL) install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) install(TARGETS VulkanMemoryAllocator EXPORT VulkanMemoryAllocatorConfig INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) - install(EXPORT VulkanMemoryAllocatorConfig NAMESPACE "GPUOpen::" DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/VulkanMemoryAllocator") + install(EXPORT VulkanMemoryAllocatorConfig NAMESPACE "GPUOpen::" DESTINATION "share/cmake/VulkanMemoryAllocator") option(VMA_BUILD_DOCUMENTATION "Create and install the HTML based API documentation") if(VMA_BUILD_DOCUMENTATION)