From b092b2fccc812453c1d0ec0a829eb8f34f174803 Mon Sep 17 00:00:00 2001 From: Timo Gurr Date: Fri, 18 Nov 2022 13:34:43 +0100 Subject: [PATCH] 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. --- cmake/install.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")