Skip to content

Commit

Permalink
Install uuid when statically building Foundation
Browse files Browse the repository at this point in the history
  • Loading branch information
drexin committed Sep 3, 2020
1 parent e6d24db commit 7ccbe9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/UUID/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ set_target_properties(uuid PROPERTIES

if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY Foundation_EXPORTS uuid)

get_swift_host_arch(swift_arch)
install(TARGETS uuid
ARCHIVE DESTINATION lib/swift_static/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
LIBRARY DESTINATION lib/swift_static/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
RUNTIME DESTINATION bin)
endif()

0 comments on commit 7ccbe9e

Please sign in to comment.