File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -135,3 +135,11 @@ install(DIRECTORY
135
135
${CMAKE_BINARY_DIR} /CoreFoundationHeaders/
136
136
DESTINATION
137
137
lib/swift/CoreFoundation )
138
+
139
+ if (NOT BUILD_SHARED_LIBS )
140
+ get_swift_host_os (swift_os )
141
+ install (TARGETS CoreFoundation
142
+ ARCHIVE DESTINATION lib/swift_static/${swift_os}
143
+ LIBRARY DESTINATION lib/swift_static/${swift_os}
144
+ RUNTIME DESTINATION bin )
145
+ endif ()
Original file line number Diff line number Diff line change @@ -33,4 +33,9 @@ target_link_libraries(_CFURLSessionInterface PRIVATE
33
33
34
34
if (NOT BUILD_SHARED_LIBS )
35
35
set_property (GLOBAL APPEND PROPERTY Foundation_EXPORTS _CFURLSessionInterface )
36
+ get_swift_host_os (swift_os )
37
+ install (TARGETS _CFURLSessionInterface
38
+ ARCHIVE DESTINATION lib/swift_static/${swift_os}
39
+ LIBRARY DESTINATION lib/swift_static/${swift_os}
40
+ RUNTIME DESTINATION bin )
36
41
endif ()
Original file line number Diff line number Diff line change @@ -32,4 +32,9 @@ target_link_libraries(_CFXMLInterface PRIVATE
32
32
33
33
if (NOT BUILD_SHARED_LIBS )
34
34
set_property (GLOBAL APPEND PROPERTY Foundation_EXPORTS _CFXMLInterface )
35
+ get_swift_host_os (swift_os )
36
+ install (TARGETS _CFXMLInterface
37
+ ARCHIVE DESTINATION lib/swift_static/${swift_os}
38
+ LIBRARY DESTINATION lib/swift_static/${swift_os}
39
+ RUNTIME DESTINATION bin )
35
40
endif ()
You can’t perform that action at this time.
0 commit comments