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/cmake.h | |
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/cmake.h')
-rw-r--r-- | Source/cmake.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index 22d3c39..4195e8e 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -547,6 +547,8 @@ public: } cmStateSnapshot GetCurrentSnapshot() const { return this->CurrentSnapshot; } + bool GetRegenerateDuringBuild() const { return this->RegenerateDuringBuild; } + protected: void RunCheckForUnusedVariables(); int HandleDeleteCacheVariables(const std::string& var); @@ -621,6 +623,7 @@ private: FileExtensions FortranFileExtensions; bool ClearBuildSystem = false; bool DebugTryCompile = false; + bool RegenerateDuringBuild = false; std::unique_ptr<cmFileTimeCache> FileTimeCache; std::string GraphVizFile; InstalledFilesMap InstalledFiles; |