summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-01-27 20:25:49 (GMT)
committerBrad King <brad.king@kitware.com>2020-01-27 20:39:04 (GMT)
commit657820a00b83cb28e018a94af2a8bf7475827c8b (patch)
tree4c8d9387d89647d99b4044de08c686b185401636 /Source/cmake.cxx
parentb12b01302878853595ddbc66af5cd21436e8c737 (diff)
downloadCMake-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/cmake.cxx')
-rw-r--r--Source/cmake.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index ab76df9..d125d0d 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -663,6 +663,8 @@ void cmake::SetArgs(const std::vector<std::string>& args)
} else if ((i < args.size() - 1) &&
(arg.find("--check-stamp-list", 0) == 0)) {
this->CheckStampList = args[++i];
+ } else if (arg == "--regenerate-during-build") {
+ this->RegenerateDuringBuild = true;
}
#if defined(CMAKE_HAVE_VS_GENERATORS)
else if ((i < args.size() - 1) &&