From acf8fc1ff8a7b2d49e25279670b04b8eb096ce0c Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Wed, 10 Oct 2018 07:08:15 +0100 Subject: Fix cmake warning CMP0075 Include file check macros honor CMAKE_REQUIRED_LIBRARIES --- cmake/os/Windows.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cmake/os') diff --git a/cmake/os/Windows.cmake b/cmake/os/Windows.cmake index 283f79b3b41..ea5084ebba6 100644 --- a/cmake/os/Windows.cmake +++ b/cmake/os/Windows.cmake @@ -132,9 +132,8 @@ IF(MSVC) ENDIF() # Always link with socket library -LINK_LIBRARIES(ws2_32) -# ..also for tests -SET(CMAKE_REQUIRED_LIBRARIES ws2_32) +STRING(APPEND CMAKE_C_STANDARD_LIBRARIES " ws2_32.lib") +STRING(APPEND CMAKE_CXX_STANDARD_LIBRARIES " ws2_32.lib") # System checks SET(SIGNAL_WITH_VIO_CLOSE 1) # Something that runtime team needs -- cgit v1.2.1