Files
swift-mirror/Runtimes/Core/cmake/modules/InstallSwiftInterface.cmake
Eric Miotto bf32bf54f3 [Runtimes][SwiftCore] lay down nested swift modules ahead of CMake 4.1
This is needed in order to build target variants properly with a
SwiftDriver that has https://github.com/swiftlang/swift-driver/pull/1856

Addresses rdar://154410676
2025-06-27 16:10:03 -07:00

14 lines
469 B
CMake

# Install the generated swift interface files for the target.
function(install_swift_interface target)
# Swiftmodules are already in the directory structure
get_target_property(module_name ${target} Swift_MODULE_NAME)
if(NOT module_name)
set(module_name ${target})
endif()
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${module_name}.swiftmodule"
DESTINATION "${SwiftCore_INSTALL_SWIFTMODULEDIR}"
COMPONENT SwiftCore_development)
endfunction()