diff options
author | Timo Gurr <[email protected]> | 2022-11-18 13:34:43 +0100 |
---|---|---|
committer | Juan Ramos <[email protected]> | 2022-11-21 09:47:43 -0700 |
commit | b092b2fccc812453c1d0ec0a829eb8f34f174803 (patch) | |
tree | 84a69c5eb524e4624e977f22e4a0b7a5369ceda4 | |
parent | 974db1cedec26504fd07abd5220d846bde13ffbd (diff) | |
download | Vulkan-Headers-b092b2fccc812453c1d0ec0a829eb8f34f174803.tar.gz Vulkan-Headers-b092b2fccc812453c1d0ec0a829eb8f34f174803.zip |
cmake: Fix environment for cross-compile installs
Currently the include directory is arch-dependent.
However, the location where the *.cmake files are installed
is arch-independent. This difference causes an issue with
cross compile environments.
-rw-r--r-- | cmake/install.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/install.cmake b/cmake/install.cmake index 047df01..c19b5e7 100644 --- a/cmake/install.cmake +++ b/cmake/install.cmake @@ -26,7 +26,7 @@ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/registry" DESTINATION ${VLK_REGIS set(export_name "VulkanHeadersConfig") set(namespace "Vulkan::") -set(cmake_files_install_dir ${CMAKE_INSTALL_DATADIR}/cmake/VulkanHeaders/) +set(cmake_files_install_dir ${CMAKE_INSTALL_LIBDIR}/cmake/VulkanHeaders/) # Set EXPORT_NAME for consistency with established names. The CMake generated ones won't work. set_target_properties(Vulkan-Headers PROPERTIES EXPORT_NAME "Headers") |