Skip to content

Commit

Permalink
link target.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Sep 8, 2022
1 parent e52dbd4 commit 9fe2023
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/Utils.cmake
Expand Up @@ -314,4 +314,8 @@ macro(xgboost_target_link_libraries target)
if (RABIT_BUILD_MPI)
target_link_libraries(${target} PRIVATE MPI::MPI_CXX)
endif (RABIT_BUILD_MPI)

if (MINGW)
target_link_libraries(${target} wsock32 ws2_32)
endif (MINGW)
endmacro(xgboost_target_link_libraries)

0 comments on commit 9fe2023

Please sign in to comment.