diff options
author | Brad King <brad.king@kitware.com> | 2020-01-27 20:25:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-01-27 20:39:04 (GMT) |
commit | 657820a00b83cb28e018a94af2a8bf7475827c8b (patch) | |
tree | 4c8d9387d89647d99b4044de08c686b185401636 /Source/cmGlobalNinjaGenerator.cxx | |
parent | b12b01302878853595ddbc66af5cd21436e8c737 (diff) | |
download | CMake-657820a00b83cb28e018a94af2a8bf7475827c8b.zip CMake-657820a00b83cb28e018a94af2a8bf7475827c8b.tar.gz CMake-657820a00b83cb28e018a94af2a8bf7475827c8b.tar.bz2 |
Ninja: Track when running to re-generate during a build
Tell CMake explicitly when it is re-running inside a `ninja` invocation
to re-generate the build system.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index a9f3711..f92ffd3 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -1530,7 +1530,7 @@ void cmGlobalNinjaGenerator::WriteTargetRebuildManifest(std::ostream& os) { cmNinjaRule rule("RERUN_CMAKE"); rule.Command = - cmStrCat(CMakeCmd(), " -S", + cmStrCat(CMakeCmd(), " --regenerate-during-build -S", lg->ConvertToOutputFormat(lg->GetSourceDirectory(), cmOutputConverter::SHELL), " -B", |