Skip to content

Commit

Permalink
Added linking with ws2_32 on WIN32
Browse files Browse the repository at this point in the history
Required to enable cross-compilation for mingw32 on Linux.
  • Loading branch information
stemann committed Sep 4, 2022
1 parent c03b8b0 commit 3a4d455
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ set(gloo_hip_DEPENDENCY_LIBS "")
# Configure path to modules (for find_package)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/Modules/")

if (WIN32)
list(APPEND gloo_DEPENDENCY_LIBS "ws2_32")
endif()

if(USE_REDIS)
find_package(hiredis REQUIRED)
if(HIREDIS_FOUND)
Expand Down

0 comments on commit 3a4d455

Please sign in to comment.