VS: Do not regenerate build system concurrently with CMP0147
The VS generators add a custom command to CMakeLists.txt
to re-run
CMake when input files have changed. Mark this custom command as if it
were specified with USES_TERMINAL
. We already do this for the
equivalent rebuild_cache
target in Makefile and Ninja generators.
This matters since !8314 (merged) because with policy CMP0147 set to
NEW, we now add BuildInParallel
in .vcxproj
file entries for custom
commands that do not have USES_TERMINAL
set, but we do not want to
re-run CMake concurrently with other custom commands.
Issue: #18405 (closed)