Skip to content

Commit 6f56c1c

Browse files
committed
Install uuid when statically building Foundation
1 parent 98ff863 commit 6f56c1c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/UUID/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@ set_target_properties(uuid PROPERTIES
2222

2323
if(NOT BUILD_SHARED_LIBS)
2424
set_property(GLOBAL APPEND PROPERTY Foundation_EXPORTS uuid)
25+
26+
get_swift_host_arch(swift_arch)
27+
install(TARGETS uuid
28+
ARCHIVE DESTINATION lib/swift_static/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch}
29+
LIBRARY DESTINATION lib/swift_static/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch}
30+
RUNTIME DESTINATION bin)
2531
endif()

0 commit comments

Comments
 (0)