[CMake][Win] WTF_CopyHeaders copies files everytime in incremental builds if Visual Studio generator is used
I'm using CMake 3.14.
Ninja generator doesn't have this issue.
This seems Visual Studio 2019 issue.
Visual Studio 2019 16.1: NG
Visual Studio 2017 15.7.6: OK
It seems that this issue has been fixed. But, I can't find a entry in release notes.
Visual Studio 2019 16.1.3: OK
My coworker is still having this issue even with Visual Studio 2019 16.1.3.
Hmm, it seems that this issue can't be reproducible on my PC now.
It is irrelevant to Visual Studio versions.
VS 2019 16.1 rebuilds add_custom_command files every time (#19303) · Issues · CMake / CMake · GitLab
This issue was fixed in CMake 3.14.5.
I'm using CMake 3.14.5 (My CMake was automatically upgraded by Chocolatey).
> The Visual Studio 2019 16.1 update introduced a regression in MSBuild’s evaluation of custom command dependencies causing them to re-run on every build. CMake 3.14.5 includes a workaround,