mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-21 20:00:11 +00:00
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.
This commit is contained in:
parent
9b0fc3e7b0
commit
c5547ffad1
@ -17,7 +17,7 @@ if (PROJECT_IS_TOP_LEVEL)
|
|||||||
|
|
||||||
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
install(TARGETS VulkanMemoryAllocator EXPORT VulkanMemoryAllocatorConfig INCLUDES 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")
|
option(VMA_BUILD_DOCUMENTATION "Create and install the HTML based API documentation")
|
||||||
if(VMA_BUILD_DOCUMENTATION)
|
if(VMA_BUILD_DOCUMENTATION)
|
||||||
|
Loading…
Reference in New Issue
Block a user