--- CMakeLists.txt.orig 2019-11-25 13:40:31 UTC +++ CMakeLists.txt @@ -207,7 +207,7 @@ target_include_directories(dmlc PUBLIC $ $) target_compile_definitions(dmlc PRIVATE -D_XOPEN_SOURCE=700 - -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200809L -D_DARWIN_C_SOURCE + -D_DARWIN_C_SOURCE -DDMLC_CORE_USE_CMAKE) # DMLC_CORE_USE_CMAKE macro constant indicates the use of CMake