File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,12 @@ if(ENABLE_TESTING)
60
60
add_subdirectory (TestFoundation )
61
61
endif ()
62
62
63
- add_subdirectory (cmake/modules )
64
-
63
+ if (NOT BUILD_SHARED_LIBS )
64
+ set_property (GLOBAL APPEND PROPERTY Foundation_EXPORTS
65
+ CoreFoundation CFXMLInterface CFURLSessionInterface )
66
+ install (TARGETS CoreFoundation CXFXMLInterface CFURLSessionInterface
67
+ DESTINATION lib/swift_static/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}> )
68
+ endif ()
65
69
# TODO(compnerd) install as a Framework as that is how swift actually is built
66
70
install (DIRECTORY
67
71
${CMAKE_CURRENT_BINARY_DIR} /CoreFoundation.framework/Headers/
@@ -90,3 +94,5 @@ install(FILES
90
94
CoreFoundation/Parsing.subproj/module.map
91
95
DESTINATION
92
96
lib/swift/CFXMLInterface )
97
+
98
+ add_subdirectory (cmake/modules )
You can’t perform that action at this time.
0 commit comments