We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CMAKE_DL_LIBS
1 parent 45150a8 commit 63418d2Copy full SHA for 63418d2
cmake/Utils.cmake
@@ -136,6 +136,7 @@ function(xgboost_link_nccl target)
136
set(xgboost_nccl_flags -DXGBOOST_USE_NCCL=1)
137
if(USE_DLOPEN_NCCL)
138
list(APPEND xgboost_nccl_flags -DXGBOOST_USE_DLOPEN_NCCL=1)
139
+ target_link_libraries(${target} PRIVATE ${CMAKE_DL_LIBS})
140
endif()
141
142
if(BUILD_STATIC_LIB)
0 commit comments