mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
14 lines
469 B
CMake
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()
|