summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2018-10-10 07:08:15 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2018-10-10 07:36:18 +0100
commitacf8fc1ff8a7b2d49e25279670b04b8eb096ce0c (patch)
treedb9196ddeed3a429818dc1286c36eb73a9b3244a /cmake
parent0b7339eb451d5ffb141ac0a89b3596eec6dc948f (diff)
downloadmariadb-git-acf8fc1ff8a7b2d49e25279670b04b8eb096ce0c.tar.gz
Fix cmake warning
CMP0075 Include file check macros honor CMAKE_REQUIRED_LIBRARIES
Diffstat (limited to 'cmake')
-rw-r--r--cmake/os/Windows.cmake5
1 files changed, 2 insertions, 3 deletions
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