mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user