diff options
author | Brad King <brad.king@kitware.com> | 2023-03-15 17:59:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-15 18:33:36 (GMT) |
commit | 4c866cac4021040d7a641978630c27f8969d4c46 (patch) | |
tree | 4d8b4cb396cf979932e02b9330d982b475f3409a /Source/cmLocalVisualStudio7Generator.cxx | |
parent | 1ec4c6579117634ddb20962cdb63313dbf79887e (diff) | |
download | CMake-4c866cac4021040d7a641978630c27f8969d4c46.zip CMake-4c866cac4021040d7a641978630c27f8969d4c46.tar.gz CMake-4c866cac4021040d7a641978630c27f8969d4c46.tar.bz2 |
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 commit d6353e74b4 (VS: Add policy to build custom
commands concurrently, 2023-03-10) 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
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 6806a5b..239748d 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -270,6 +270,7 @@ cmSourceFile* cmLocalVisualStudio7Generator::CreateVCProjBuildRule() cc->SetComment(comment.c_str()); cc->SetEscapeOldStyle(false); cc->SetStdPipesUTF8(true); + cc->SetUsesTerminal(true); this->AddCustomCommandToOutput(std::move(cc), true); if (cmSourceFile* file = this->Makefile->GetSource(makefileIn)) { // Finalize the source file path now since we're adding this after |