Skip to content

Commit

Permalink
Small cleanup for CMake scripts. (#10573)
Browse files Browse the repository at this point in the history
- Remove rabit.
  • Loading branch information
trivialfis authored Jul 11, 2024
1 parent 6c40318 commit 5fea9d2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ target_sources(objxgboost PRIVATE ${CPU_SOURCES})
set_source_files_properties(
predictor/predictor.cc gbm/gbm.cc tree/tree_updater.cc metric/metric.cc objective/objective.cc
PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON)
target_sources(objxgboost PRIVATE ${RABIT_SOURCES})

if(USE_CUDA)
file(GLOB_RECURSE CUDA_SOURCES *.cu *.cuh)
Expand All @@ -23,8 +22,7 @@ endif()
target_include_directories(objxgboost
PRIVATE
${xgboost_SOURCE_DIR}/include
${xgboost_SOURCE_DIR}/dmlc-core/include
${xgboost_SOURCE_DIR}/rabit/include)
${xgboost_SOURCE_DIR}/dmlc-core/include)

if(LOG_CAPI_INVOCATION)
target_compile_definitions(objxgboost PRIVATE -DLOG_CAPI_INVOCATION=1)
Expand Down

0 comments on commit 5fea9d2

Please sign in to comment.