File tree 3 files changed +25
-0
lines changed
3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,13 @@ target_link_libraries(Foundation
155
155
FoundationEssentials
156
156
FoundationInternationalization)
157
157
158
+ if (NOT BUILD_SHARED_LIBS )
159
+ target_compile_options (Foundation PRIVATE
160
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend CoreFoundation>" )
161
+ target_compile_options (Foundation PRIVATE
162
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _FoundationICU>" )
163
+ endif ()
164
+
158
165
target_link_options (Foundation PRIVATE
159
166
"SHELL:-no-toolchain-stdlib-rpath" )
160
167
Original file line number Diff line number Diff line change @@ -56,6 +56,15 @@ target_link_libraries(FoundationNetworking
56
56
PUBLIC
57
57
Foundation)
58
58
59
+ if (NOT BUILD_SHARED_LIBS )
60
+ target_compile_options (FoundationNetworking PRIVATE
61
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _CFURLSessionInterface>" )
62
+ target_compile_options (FoundationNetworking PRIVATE
63
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend CoreFoundation>" )
64
+ target_compile_options (FoundationNetworking PRIVATE
65
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend curl>" )
66
+ endif ()
67
+
59
68
target_link_options (FoundationNetworking PRIVATE
60
69
"SHELL:-no-toolchain-stdlib-rpath" )
61
70
Original file line number Diff line number Diff line change @@ -31,6 +31,15 @@ target_link_libraries(FoundationXML
31
31
PUBLIC
32
32
Foundation)
33
33
34
+ if (NOT BUILD_SHARED_LIBS )
35
+ target_compile_options (FoundationXML PRIVATE
36
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _CFXMLInterface>" )
37
+ target_compile_options (FoundationXML PRIVATE
38
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend CoreFoundation>" )
39
+ target_compile_options (FoundationXML PRIVATE
40
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend xml2>" )
41
+ endif ()
42
+
34
43
target_link_options (FoundationXML PRIVATE
35
44
"SHELL:-no-toolchain-stdlib-rpath" )
36
45
You can’t perform that action at this time.
0 commit comments