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.
This commit is contained in:
Timo Gurr 2022-11-18 13:34:43 +01:00 committed by Juan Ramos
parent 974db1cede
commit b092b2fccc

View file

@ -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")