summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-10-20 20:37:37 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-10-20 20:37:37 (GMT)
commit4c32cfb3a344d4b7cfac12ac2e284aa1a0666271 (patch)
tree5620f492f7e067c3dbbbc3659ab3d4816efa80ad /Source/cmLocalUnixMakefileGenerator3.cxx
parentd3d746ad7b5b0f84ff03a605084ccb441852b902 (diff)
downloadCMake-4c32cfb3a344d4b7cfac12ac2e284aa1a0666271.zip
CMake-4c32cfb3a344d4b7cfac12ac2e284aa1a0666271.tar.gz
CMake-4c32cfb3a344d4b7cfac12ac2e284aa1a0666271.tar.bz2
BUG: fix over checking of build system
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 0994486..fc59a4f 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -2875,19 +2875,22 @@ void cmLocalUnixMakefileGenerator3::WriteLocalMakefile()
// rules may depend on this file itself.
std::string ruleFileNameFull = this->ConvertToFullPath(ruleFileName);
cmGeneratedFileStream ruleFileStream(ruleFileNameFull.c_str());
- ruleFileStream.SetCopyIfDifferent(true);
if(!ruleFileStream)
{
return;
}
+ // always write the top makefile
+ if (m_Parent)
+ {
+ ruleFileStream.SetCopyIfDifferent(true);
+ }
// write the all rules
this->WriteLocalAllRules(ruleFileStream);
- // Keep track of targets already listed.
+ // only write local targets unless at the top Keep track of targets already
+ // listed.
std::set<cmStdString> emittedTargets;
-
- // only write local targets unless at the top
if (m_Parent)
{
// write our targets, and while doing it collect up the object