File tree 5 files changed +11
-3
lines changed
5 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 13
13
##===----------------------------------------------------------------------===##
14
14
15
15
file (GLOB_RECURSE _FoundationSources "*.swift" )
16
- add_library (Foundation SHARED ${_FoundationSources} )
16
+ add_library (Foundation ${_FoundationSources} )
17
17
18
18
target_compile_options (Foundation PRIVATE
19
19
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:${_Foundation_swift_build_flags} >" )
Original file line number Diff line number Diff line change 13
13
##===----------------------------------------------------------------------===##
14
14
15
15
file (GLOB_RECURSE _FoundationNetworkingSources "*.swift" )
16
- add_library (FoundationNetworking SHARED ${_FoundationNetworkingSources} )
16
+ add_library (FoundationNetworking ${_FoundationNetworkingSources} )
17
17
18
18
target_compile_options (FoundationNetworking PRIVATE
19
19
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:${_Foundation_swift_build_flags} >" )
Original file line number Diff line number Diff line change 13
13
##===----------------------------------------------------------------------===##
14
14
15
15
file (GLOB_RECURSE _FoundationXMLSources "*.swift" )
16
- add_library (FoundationXML SHARED ${_FoundationXMLSources} )
16
+ add_library (FoundationXML ${_FoundationXMLSources} )
17
17
18
18
target_compile_options (FoundationXML PRIVATE
19
19
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:${_Foundation_swift_build_flags} >" )
Original file line number Diff line number Diff line change @@ -31,3 +31,7 @@ target_link_libraries(_CFURLSessionInterface PRIVATE
31
31
CoreFoundation
32
32
dispatch
33
33
CURL::libcurl)
34
+
35
+ if (NOT BUILD_SHARED_LIBS )
36
+ set_property (GLOBAL APPEND PROPERTY Foundation_EXPORTS _CFURLSessionInterface)
37
+ endif ()
Original file line number Diff line number Diff line change @@ -30,3 +30,7 @@ target_link_libraries(_CFXMLInterface PRIVATE
30
30
CoreFoundation
31
31
dispatch
32
32
LibXml2::LibXml2)
33
+
34
+ if (NOT BUILD_SHARED_LIBS )
35
+ set_property (GLOBAL APPEND PROPERTY Foundation_EXPORTS _CFXMLInterface)
36
+ endif ()
You can’t perform that action at this time.
0 commit comments