mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 11:50:11 -05:00
cmMakefile: Track configured files so we can regenerate them (#13582)
Currently when a configured file is removed from the build directory, running the build command will not regenerate the file. Now detect this and will rerun cmake properly when a user issues the build command.
This commit is contained in:
committed by
Brad King
parent
4a6397a70c
commit
ad502502df
@@ -3371,6 +3371,7 @@ int cmMakefile::ConfigureFile(const char* infile, const char* outfile,
|
|||||||
std::string sinfile = infile;
|
std::string sinfile = infile;
|
||||||
this->AddCMakeDependFile(sinfile);
|
this->AddCMakeDependFile(sinfile);
|
||||||
cmSystemTools::ConvertToUnixSlashes(soutfile);
|
cmSystemTools::ConvertToUnixSlashes(soutfile);
|
||||||
|
this->AddCMakeOutputFile(soutfile);
|
||||||
mode_t perm = 0;
|
mode_t perm = 0;
|
||||||
cmSystemTools::GetPermissions(sinfile.c_str(), perm);
|
cmSystemTools::GetPermissions(sinfile.c_str(), perm);
|
||||||
std::string::size_type pos = soutfile.rfind('/');
|
std::string::size_type pos = soutfile.rfind('/');
|
||||||
|
|||||||
Reference in New Issue
Block a user