Skip to content

Commit

Permalink
This will make archiving compatible to other archive tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandeep Dasgupta committed May 20, 2016
1 parent 3e20817 commit c529006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/modules/AddSwift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ function(_target_merge_static_library dst_target src_target)
add_custom_command(TARGET "${dst_target}" POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E make_directory "${unpack_dir}"
COMMAND cd "${unpack_dir}"
COMMAND "${CMAKE_AR}" -x "$<TARGET_FILE:${src_target}>"
COMMAND "${CMAKE_AR}" -r "$<TARGET_FILE:${dst_target}>" ./*.o
COMMAND "${CMAKE_AR}" x "$<TARGET_FILE:${src_target}>"
COMMAND "${CMAKE_AR}" r "$<TARGET_FILE:${dst_target}>" ./*.o
COMMAND cd "${CMAKE_BINARY_DIR}"
COMMAND "${CMAKE_COMMAND}" -E remove_directory "${unpack_dir}"
)
Expand Down

0 comments on commit c529006

Please sign in to comment.