Cmake modifies dmlc build_config.h

I’m sure this is a simple issue that each newbie would encounter, but unfortunately I was unable to resolve it myself.

I try to build xgboost according to instructions. Just after running cmake, git status starts mentioning dmlc-core submodule modified, which tracks down to dmlc/dmlc-core/include/dmlc/build_config.h being modified

This doesn’t affect the build but it makes the entire project dirty. It also makes crazy the VS Code that I’m using, so I can’t rely on its indicators, notifications etc.

Are there some easy settings that can fix the issue? Or I just need to live this way?

See discussion at https://github.com/dmlc/dmlc-core/pull/432#discussion_r278371462. The reason is to support plain Makefile as well as CMake.

The solution suggested here seems working:

git update-index --assume-unchanged include/dmlc/build_config.h