Ninja: Regenerate when test or install scripts are missing

Rerun CMake when `cmake_install.cmake` or `CTestTestfile.cmake` are out
of date.  This enables regeneration if a subdirectory is removed before
invoking `ninja`.

Fixes: #26396
This commit is contained in:
Martin Duffy
2024-11-06 08:35:57 -05:00
committed by Brad King
parent 79349dee01
commit f50fb77a4f
7 changed files with 32 additions and 0 deletions
+3
View File
@@ -675,6 +675,8 @@ public:
bool CheckCMP0171() const;
void AddInstallScript(std::string const& file);
void AddTestFile(std::string const& file);
void AddCMakeFilesToRebuild(std::vector<std::string>& files) const;
protected:
// for a project collect all its targets by following depend
@@ -916,6 +918,7 @@ private:
RuntimeDependencySetsByName;
std::vector<std::string> InstallScripts;
std::vector<std::string> TestFiles;
#if !defined(CMAKE_BOOTSTRAP)
// Pool of file locks