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.
1 parent 8c57558 commit 6ab6577Copy full SHA for 6ab6577
CMakeLists.txt
@@ -233,6 +233,11 @@ endif (RABIT_BUILD_MPI)
233
add_subdirectory(${xgboost_SOURCE_DIR}/src)
234
target_link_libraries(objxgboost PUBLIC dmlc)
235
236
+# Link -lstdc++fs for GCC 8.x
237
+if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.0")
238
+ target_link_libraries(objxgboost PUBLIC stdc++fs)
239
+endif()
240
+
241
# Exports some R specific definitions and objects
242
if (R_LIB)
243
add_subdirectory(${xgboost_SOURCE_DIR}/R-package)
0 commit comments