summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-04-10 17:53:00 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-04-10 17:53:00 (GMT)
commit8c06f8e2943c1d3726428ea01ba6bc5b49101081 (patch)
treeab6b7ed577382b8a61d8f63e95e3a67807f32cd3 /Source/cmGlobalUnixMakefileGenerator3.cxx
parent3df8a59374aac7810520e59c48818d86708f27ac (diff)
downloadCMake-8c06f8e2943c1d3726428ea01ba6bc5b49101081.zip
CMake-8c06f8e2943c1d3726428ea01ba6bc5b49101081.tar.gz
CMake-8c06f8e2943c1d3726428ea01ba6bc5b49101081.tar.bz2
ENH: add support for re-running cmake if the cmakefiles change
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index 0baa494..048ff50 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator3.cxx
@@ -287,6 +287,13 @@ void cmGlobalUnixMakefileGenerator3::WriteMainCMakefile()
tmpStr += "/CMakeFiles/CMakeDirectoryInformation.cmake";
cmakefileStream << " \"" <<
lg->Convert(tmpStr.c_str(),cmLocalGenerator::HOME_OUTPUT).c_str() << "\"\n";
+ const std::vector<std::string>& outfiles = lg->GetMakefile()->GetOutputFiles();
+ for(std::vector<std::string>::const_iterator k= outfiles.begin();
+ k != outfiles.end(); ++k)
+ {
+ cmakefileStream << " \"" <<
+ lg->Convert(k->c_str(),cmLocalGenerator::HOME_OUTPUT).c_str() << "\"\n";
+ }
}
cmakefileStream << " )\n\n";