cmake: Fix cross-compilation

We need to revert b092b2f in Gentoo to fix multi-ABI vulkan-loader
build

This reverts commit b092b2fccc.

See https://github.com/KhronosGroup/Vulkan-Headers/issues/330 for
details.
This commit is contained in:
Juan Ramos
2022-12-05 09:16:09 -07:00
committed by Juan Ramos
parent 2826791bed
commit 891c40de1a

View File

@@ -26,7 +26,7 @@ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/registry" DESTINATION ${VLK_REGIS
set(export_name "VulkanHeadersConfig") set(export_name "VulkanHeadersConfig")
set(namespace "Vulkan::") set(namespace "Vulkan::")
set(cmake_files_install_dir ${CMAKE_INSTALL_LIBDIR}/cmake/VulkanHeaders/) set(cmake_files_install_dir ${CMAKE_INSTALL_DATADIR}/cmake/VulkanHeaders/)
# Set EXPORT_NAME for consistency with established names. The CMake generated ones won't work. # Set EXPORT_NAME for consistency with established names. The CMake generated ones won't work.
set_target_properties(Vulkan-Headers PROPERTIES EXPORT_NAME "Headers") set_target_properties(Vulkan-Headers PROPERTIES EXPORT_NAME "Headers")