VisualStudio incremental build problem
I have an issue with "Visual Studio 14 2015" generator. I have not tested other VS versions.
You can find a minimal project that can reproduce my issue here: https://github.com/jeremy-coulon/cmake-incremental
Here are the steps to reproduce the problem:
- Start with an empty build directory
- cmake ..
- cmake --build .
- cmake --build . // I am trying to build it again without changing any file => some files are rebuilt even if nothing has changed! It's quick on this simple project but takes minutes on my real world project because a lot of files are rebuilt.
- cmake --build . // I am trying to build it again without changing any file => this time, nothing is rebuilt!
Note that on Linux, both Makefile and Ninja generators are working perfectly fine (ie. nothing is rebuilt when I don't change any file).