aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Gurr <timo.gurr@gmail.com>2022-11-18 13:34:43 +0100
committerJuan Ramos <114601453+juan-lunarg@users.noreply.github.com>2022-11-21 09:47:43 -0700
commitb092b2fccc812453c1d0ec0a829eb8f34f174803 (patch)
tree84a69c5eb524e4624e977f22e4a0b7a5369ceda4
parent974db1cedec26504fd07abd5220d846bde13ffbd (diff)
downloadvulkan-headers-b092b2fccc812453c1d0ec0a829eb8f34f174803.tar.gz
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.cmake2
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")