Small cleanup for CMake scripts. (#10573)

- Remove rabit.
This commit is contained in:
Jiaming Yuan 2024-07-12 05:18:23 +08:00 committed by GitHub
parent 6c403187ec
commit 5fea9d24f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)