Skip to content

Commit fbeff00

Browse files
committed
build: use autolinking on Windows
Similar to Darwin, use autolinking on Windows to pick up dependent libraries. This simplifies the build rules.
1 parent 189a90d commit fbeff00

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,8 @@ add_swift_library(Foundation
279279
$<TARGET_FILE:uuid>
280280
${Foundation_RPATH}
281281
${WORKAROUND_SR9138}
282-
$<$<PLATFORM_ID:Windows>:-lDbgHelp>
283282
$<$<PLATFORM_ID:Windows>:-lOle32>
284-
$<$<PLATFORM_ID:Windows>:-lShLwApi>
285283
$<$<PLATFORM_ID:Windows>:-lShell32>
286-
$<$<PLATFORM_ID:Windows>:-lWS2_32>
287-
$<$<PLATFORM_ID:Windows>:-liphlpapi>
288284
$<$<PLATFORM_ID:Windows>:-lpathcch>
289285
$<$<PLATFORM_ID:Windows>:$<TARGET_OBJECTS:CoreFoundationResources>>
290286
SWIFT_FLAGS
@@ -537,7 +533,6 @@ if(ENABLE_TESTING)
537533
-L${FOUNDATION_PATH_TO_XCTEST_BUILD}
538534
-lXCTest
539535
${WORKAROUND_SR9138}
540-
$<$<PLATFORM_ID:Windows>:-lWS2_32>
541536
RESOURCES
542537
${CMAKE_SOURCE_DIR}/TestFoundation/Resources/Info.plist
543538
${CMAKE_SOURCE_DIR}/TestFoundation/Resources/NSURLTestData.plist

0 commit comments

Comments
 (0)