BUG: fix over checking of build system
This commit is contained in:
parent
d3d746ad7b
commit
4c32cfb3a3
|
@ -2875,19 +2875,22 @@ void cmLocalUnixMakefileGenerator3::WriteLocalMakefile()
|
||||||
// rules may depend on this file itself.
|
// rules may depend on this file itself.
|
||||||
std::string ruleFileNameFull = this->ConvertToFullPath(ruleFileName);
|
std::string ruleFileNameFull = this->ConvertToFullPath(ruleFileName);
|
||||||
cmGeneratedFileStream ruleFileStream(ruleFileNameFull.c_str());
|
cmGeneratedFileStream ruleFileStream(ruleFileNameFull.c_str());
|
||||||
ruleFileStream.SetCopyIfDifferent(true);
|
|
||||||
if(!ruleFileStream)
|
if(!ruleFileStream)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// always write the top makefile
|
||||||
|
if (m_Parent)
|
||||||
|
{
|
||||||
|
ruleFileStream.SetCopyIfDifferent(true);
|
||||||
|
}
|
||||||
|
|
||||||
// write the all rules
|
// write the all rules
|
||||||
this->WriteLocalAllRules(ruleFileStream);
|
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;
|
std::set<cmStdString> emittedTargets;
|
||||||
|
|
||||||
// only write local targets unless at the top
|
|
||||||
if (m_Parent)
|
if (m_Parent)
|
||||||
{
|
{
|
||||||
// write our targets, and while doing it collect up the object
|
// write our targets, and while doing it collect up the object
|
||||||
|
|
Loading…
Reference in New Issue