File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -1465,25 +1465,17 @@ function(add_swift_library name)
1465
1465
endif ()
1466
1466
1467
1467
set (lipo_target "${name} -${SWIFT_SDK_${sdk} _LIB_SUBDIR}" )
1468
-
1469
- if ("${CMAKE_SYSTEM_NAME} " STREQUAL "Darwin" AND SWIFTLIB_SHARED )
1470
- set (unsigned "-unsigned" )
1471
- endif ()
1472
-
1473
1468
_add_swift_lipo_target (
1474
1469
${sdk}
1475
- ${lipo_target}${unsigned}
1476
- " ${UNIVERSAL_LIBRARY_NAME}${unsigned} "
1470
+ ${lipo_target}
1471
+ ${UNIVERSAL_LIBRARY_NAME}
1477
1472
${THIN_INPUT_TARGETS} )
1478
1473
1479
1474
if ("${CMAKE_SYSTEM_NAME} " STREQUAL "Darwin" AND SWIFTLIB_SHARED )
1480
1475
# Ad-hoc sign stdlib dylibs
1481
- add_custom_command_target (unused_var
1482
- COMMAND ${CMAKE_COMMAND} -E copy ${UNIVERSAL_LIBRARY_NAME}${unsigned} ${UNIVERSAL_LIBRARY_NAME}
1483
- COMMAND "codesign" "-f" "-s" "-" "${UNIVERSAL_LIBRARY_NAME} "
1484
- OUTPUT ${UNIVERSAL_LIBRARY_NAME}
1485
- DEPENDS ${lipo_target}${unsigned}
1486
- CUSTOM_TARGET_NAME ${lipo_target} )
1476
+ add_custom_command (TARGET "${name} -${SWIFT_SDK_${sdk} _LIB_SUBDIR}"
1477
+ POST_BUILD
1478
+ COMMAND "codesign" "-f" "-s" "-" "${UNIVERSAL_LIBRARY_NAME} " )
1487
1479
endif ()
1488
1480
1489
1481
# Cache universal libraries for dependency purposes
You can’t perform that action at this time.
0 commit comments