diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2013-06-18 17:50:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-06-25 12:51:20 (GMT) |
commit | ad502502dfee281e5b0ad8ac57057d72220b4380 (patch) | |
tree | 36916aa85d1bab553588b56efe4264403f2ce65a /Source/cmMakefile.cxx | |
parent | 4a6397a70c2b467b1285be4c0bae7533eb16f5e0 (diff) | |
download | CMake-ad502502dfee281e5b0ad8ac57057d72220b4380.zip CMake-ad502502dfee281e5b0ad8ac57057d72220b4380.tar.gz CMake-ad502502dfee281e5b0ad8ac57057d72220b4380.tar.bz2 |
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.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index d5d99a0..f3a66ba 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -3371,6 +3371,7 @@ int cmMakefile::ConfigureFile(const char* infile, const char* outfile, std::string sinfile = infile; this->AddCMakeDependFile(sinfile); cmSystemTools::ConvertToUnixSlashes(soutfile); + this->AddCMakeOutputFile(soutfile); mode_t perm = 0; cmSystemTools::GetPermissions(sinfile.c_str(), perm); std::string::size_type pos = soutfile.rfind('/'); |