Skip to content

Commit acf8fc1

Browse files
committed
Fix cmake warning
CMP0075 Include file check macros honor CMAKE_REQUIRED_LIBRARIES
1 parent 0b7339e commit acf8fc1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmake/os/Windows.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,8 @@ IF(MSVC)
132132
ENDIF()
133133

134134
# Always link with socket library
135-
LINK_LIBRARIES(ws2_32)
136-
# ..also for tests
137-
SET(CMAKE_REQUIRED_LIBRARIES ws2_32)
135+
STRING(APPEND CMAKE_C_STANDARD_LIBRARIES " ws2_32.lib")
136+
STRING(APPEND CMAKE_CXX_STANDARD_LIBRARIES " ws2_32.lib")
138137

139138
# System checks
140139
SET(SIGNAL_WITH_VIO_CLOSE 1) # Something that runtime team needs

0 commit comments

Comments
 (0)