cmake: Remove explicit install of Vulkan-Module

Installing a C++ module in CMake isn't something which is well defined currently.
Rather than add code which behaves poorly or flat out wrong, it is better to not
try to install a binary module for the time being. The vulkan.cppm file is still
included in the install so downstream users can still create a module from it.
This commit is contained in:
Charles Giessen 2024-06-18 12:57:48 -05:00 committed by Charles Giessen
parent a692a9c939
commit 7dacb97fba

View file

@ -88,14 +88,6 @@ if (VULKAN_HEADERS_ENABLE_INSTALL)
set_target_properties(Vulkan-Headers PROPERTIES EXPORT_NAME "Headers")
install(TARGETS Vulkan-Headers EXPORT VulkanHeadersConfig INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.28" AND COMPILER_SUPPORTS_CXX_MODULES)
install(TARGETS Vulkan-Module
EXPORT VulkanHeadersConfig
FILE_SET module
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/include/vulkan"
)
endif()
install(EXPORT VulkanHeadersConfig NAMESPACE "Vulkan::" DESTINATION "share/cmake/VulkanHeaders")
set(version_config "${CMAKE_CURRENT_BINARY_DIR}/generated/VulkanHeadersConfigVersion.cmake")