diff options
author | Frans van Dorsselaer <frans.vandorsselaer@foxcrypto.com> | 2019-05-28 13:53:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-05-30 17:57:03 (GMT) |
commit | 42bc67bd43ca67c98dc33f8cb8e2f4ee3884697f (patch) | |
tree | 1daa54a05775a5f07d85f9942c950d8c35ec0ab2 /.hooks-config | |
parent | d03a6fc8578ac2b4191a74c8638d58b7f92ec6f1 (diff) | |
download | CMake-42bc67bd43ca67c98dc33f8cb8e2f4ee3884697f.zip CMake-42bc67bd43ca67c98dc33f8cb8e2f4ee3884697f.tar.gz CMake-42bc67bd43ca67c98dc33f8cb8e2f4ee3884697f.tar.bz2 |
VS: De-duplicate custom command dependencies
Avoid listing the same input more than once in custom commands generated
in `.vcxproj` and `.csproj` files. In the case of a `.vcxproj` file
additionally avoid listing the source to which the command is attached
since it is already implicitly a dependency.
This is a nice cleanup and also works around a VS 2019 16.1 regression
in MSBuild dependency checking. Starting with that version, MSBuild now
re-builds custom commands when the list of dependencies has changed.
However, its check is confused by duplicate dependencies.
De-duplicating them avoids this problem.
Co-Author: Brad King <brad.king@kitware.com>
Fixes: #19303
Diffstat (limited to '.hooks-config')
0 files changed, 0 insertions, 0 deletions