@@ -47,7 +47,6 @@ option(USE_OPENMP "Build with OpenMP support." ON)
47
47
option (BUILD_STATIC_LIB "Build static library" OFF )
48
48
option (BUILD_DEPRECATED_CLI "Build the deprecated command line interface" OFF )
49
49
option (FORCE_SHARED_CRT "Build with dynamic CRT on Windows (/MD)" OFF )
50
- option (RABIT_BUILD_MPI "Build MPI" OFF )
51
50
## Bindings
52
51
option (JVM_BINDINGS "Build JVM bindings" OFF )
53
52
option (R_LIB "Build shared library for R package" OFF )
@@ -106,12 +105,6 @@ if (R_LIB AND GOOGLE_TEST)
106
105
message (WARNING "Some C++ unittests will fail with `R_LIB` enabled,
107
106
as R package redirects some functions to R runtime implementation." )
108
107
endif (R_LIB AND GOOGLE_TEST )
109
- if (USE_AVX )
110
- message (SEND_ERROR "The option 'USE_AVX' is deprecated as experimental AVX features have been removed from XGBoost." )
111
- endif (USE_AVX )
112
- if (PLUGIN_LZ4 )
113
- message (SEND_ERROR "The option 'PLUGIN_LZ4' is removed from XGBoost." )
114
- endif (PLUGIN_LZ4 )
115
108
if (PLUGIN_RMM AND NOT (USE_CUDA ))
116
109
message (SEND_ERROR "`PLUGIN_RMM` must be enabled with `USE_CUDA` flag." )
117
110
endif (PLUGIN_RMM AND NOT (USE_CUDA ))
@@ -144,6 +137,26 @@ if (PLUGIN_FEDERATED)
144
137
endif ()
145
138
endif ()
146
139
140
+ #-- Removed options
141
+ if (USE_AVX )
142
+ message (SEND_ERROR "The option `USE_AVX` is deprecated as experimental AVX features have been removed from XGBoost." )
143
+ endif (USE_AVX )
144
+ if (PLUGIN_LZ4 )
145
+ message (SEND_ERROR "The option `PLUGIN_LZ4` is removed from XGBoost." )
146
+ endif (PLUGIN_LZ4 )
147
+ if (RABIT_BUILD_MPI )
148
+ message (SEND_ERROR "The option `RABIT_BUILD_MPI` has been removed from XGBoost." )
149
+ endif (RABIT_BUILD_MPI )
150
+ if (USE_S3 )
151
+ message (SEND_ERROR "The option `USE_S3` has been removed from XGBoost" )
152
+ endif (USE_S3 )
153
+ if (USE_AZURE )
154
+ message (SEND_ERROR "The option `USE_AZURE` has been removed from XGBoost" )
155
+ endif (USE_AZURE )
156
+ if (USE_HDFS )
157
+ message (SEND_ERROR "The option `USE_HDFS` has been removed from XGBoost" )
158
+ endif (USE_HDFS )
159
+
147
160
#-- Sanitizer
148
161
if (USE_SANITIZER )
149
162
include (cmake/Sanitizer.cmake )
@@ -222,9 +235,6 @@ endif (MSVC)
222
235
223
236
# rabit
224
237
add_subdirectory (rabit )
225
- if (RABIT_BUILD_MPI )
226
- find_package (MPI REQUIRED )
227
- endif (RABIT_BUILD_MPI )
228
238
229
239
# core xgboost
230
240
add_subdirectory (${xgboost_SOURCE_DIR} /src )
0 commit comments