Skip to content

Commit 858d285

Browse files
committed
Added linking with ws2_32 on WIN32
Required to enable cross-compilation for mingw32 on Linux.
1 parent c0802b8 commit 858d285

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/Dependencies.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ set(gloo_hip_DEPENDENCY_LIBS "")
55
# Configure path to modules (for find_package)
66
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/Modules/")
77

8+
if (WIN32)
9+
list(APPEND gloo_DEPENDENCY_LIBS "ws2_32")
10+
endif()
11+
812
if(USE_REDIS)
913
find_package(hiredis REQUIRED)
1014
if(HIREDIS_FOUND)

0 commit comments

Comments
 (0)