--- CMakeLists.txt.orig 2020-09-24 08:09:24 UTC +++ CMakeLists.txt @@ -131,11 +131,11 @@ add_subdirectory(${xgboost_SOURCE_DIR}/src) # dmlc-core msvc_use_static_runtime() -add_subdirectory(${xgboost_SOURCE_DIR}/dmlc-core) -set_target_properties(dmlc PROPERTIES - CXX_STANDARD 14 - CXX_STANDARD_REQUIRED ON - POSITION_INDEPENDENT_CODE ON) +#add_subdirectory(${xgboost_SOURCE_DIR}/dmlc-core) +#set_target_properties(dmlc PROPERTIES +# CXX_STANDARD 14 +# CXX_STANDARD_REQUIRED ON +# POSITION_INDEPENDENT_CODE ON) if (MSVC) target_compile_options(dmlc PRIVATE -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE) @@ -144,10 +144,10 @@ if (MSVC) -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE) endif (TARGET dmlc_unit_tests) endif (MSVC) -if (ENABLE_ALL_WARNINGS) - target_compile_options(dmlc PRIVATE -Wall -Wextra) -endif (ENABLE_ALL_WARNINGS) -target_link_libraries(objxgboost PUBLIC dmlc) +#if (ENABLE_ALL_WARNINGS) +# target_compile_options(dmlc PRIVATE -Wall -Wextra) +#endif (ENABLE_ALL_WARNINGS) +#target_link_libraries(objxgboost PUBLIC dmlc) # rabit set(RABIT_BUILD_DMLC OFF)