File tree Expand file tree Collapse file tree 3 files changed +455
-36
lines changed Expand file tree Collapse file tree 3 files changed +455
-36
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
110
110
set (Foundation_rpath_flags -Xlinker;-rpath;-Xlinker; "\\\$\$ ORIGIN" )
111
111
elseif (CMAKE_SYSTEM_NAME STREQUAL Windows )
112
112
set (deployment_target -DDEPLOYMENT_TARGET_WINDOWS )
113
+ set (CoreFoundation_INTERFACE_LIBRARIES -lWS2_32 -lUser32 -lmsvcrt -ladvapi32 -lshell32 -lrpcrt4 -lsecur32 -lPathcch -lOle32 -lCrypt32 -lwldap32 -lNormaliz -lDbgHelp -lIphlpapi )
113
114
endif ()
114
115
115
116
add_swift_library (Foundation
@@ -298,13 +299,15 @@ add_swift_library(Foundation
298
299
-L${CMAKE_CURRENT_BINARY_DIR}
299
300
-luuid
300
301
${Foundation_rpath_flags}
302
+ ${CoreFoundation_INTERFACE_LIBRARIES}
301
303
SWIFT_FLAGS
302
304
-DDEPLOYMENT_RUNTIME_SWIFT
303
305
${deployment_enable_libdispatch}
304
306
-I;${ICU_INCLUDE_DIR}
305
307
${libdispatch_cflags}
306
308
${swift_enable_testing}
307
309
${swift_optimization_flags}
310
+ -Xcc -D_DLL
308
311
DEPENDS
309
312
CoreFoundation )
310
313
Original file line number Diff line number Diff line change @@ -353,6 +353,12 @@ if(CF_DEPLOYMENT_SWIFT)
353
353
target_compile_definitions (CoreFoundation
354
354
PRIVATE
355
355
-DDEPLOYMENT_RUNTIME_SWIFT )
356
+ if (CMAKE_SYSTEM_NAME STREQUAL Windows )
357
+ target_compile_definitions (CoreFoundation
358
+ PRIVATE
359
+ -D_DLL
360
+ -DCURL_STATICLIB )
361
+ endif ()
356
362
else ()
357
363
target_compile_definitions (CoreFoundation
358
364
PRIVATE
You can’t perform that action at this time.
0 commit comments