We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 623738b + a5705d6 commit 85a4a04Copy full SHA for 85a4a04
cmake/modules/AddSwift.cmake
@@ -1027,6 +1027,11 @@ function(_add_swift_library_single target name)
1027
set_target_properties("${target}" PROPERTIES
1028
LIBRARY_OUTPUT_DIRECTORY ${SWIFTLIB_DIR}/${SWIFTLIB_SINGLE_SUBDIR}
1029
ARCHIVE_OUTPUT_DIRECTORY ${SWIFTLIB_DIR}/${SWIFTLIB_SINGLE_SUBDIR})
1030
+ if(SWIFTLIB_SINGLE_SDK STREQUAL WINDOWS AND SWIFTLIB_SINGLE_IS_STDLIB_CORE
1031
+ AND libkind STREQUAL SHARED)
1032
+ add_custom_command(TARGET ${target} POST_BUILD
1033
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:${target}> ${SWIFTLIB_DIR}/${SWIFTLIB_SINGLE_SUBDIR})
1034
+ endif()
1035
1036
foreach(config ${CMAKE_CONFIGURATION_TYPES})
1037
string(TOUPPER ${config} config_upper)
0 commit comments