From 5fea9d24f2e286510178e2ba9a55829e695356e8 Mon Sep 17 00:00:00 2001 From: Jiaming Yuan Date: Fri, 12 Jul 2024 05:18:23 +0800 Subject: [PATCH] Small cleanup for CMake scripts. (#10573) - Remove rabit. --- src/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 49290179a899..51ce25607fa0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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) @@ -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)