Skip to content

Commit e58330e

Browse files
committed
build: adjust flags for TestFoundation on Windows
We need to link against the WinSock library on Windows since we use the WinSock library for the HTTPServer. Silence some warnings on Windows for the linker to make errors easier to spot.
1 parent abe5c1f commit e58330e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,9 @@ if(ENABLE_TESTING)
476476
${Foundation_INTERFACE_LIBRARIES}
477477
-L${FOUNDATION_PATH_TO_XCTEST_BUILD}
478478
-lXCTest
479+
${WORKAROUND_SR9138}
480+
${WORKAROUND_SR9995}
481+
$<$<PLATFORM_ID:Windows>:-lWS2_32>
479482
RESOURCES
480483
${CMAKE_SOURCE_DIR}/TestFoundation/Resources/Info.plist
481484
${CMAKE_SOURCE_DIR}/TestFoundation/Resources/NSURLTestData.plist

0 commit comments

Comments
 (0)