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