BUG#318: cmake.check_depends now collects all dependencies for cmake.depends and then uses a single rule.
This commit is contained in:
parent
44d6e0362e
commit
b7361dd04e
|
@ -2017,7 +2017,7 @@ void cmLocalUnixMakefileGenerator::OutputCheckDepends(std::ostream& fout)
|
||||||
if(emittedLowerPath.insert(lowerpath).second)
|
if(emittedLowerPath.insert(lowerpath).second)
|
||||||
{
|
{
|
||||||
emitted.insert(dependfile);
|
emitted.insert(dependfile);
|
||||||
fout << "all:: " << dependfile << "\n";
|
fout << "all: " << dependfile << "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2028,9 +2028,10 @@ void cmLocalUnixMakefileGenerator::OutputCheckDepends(std::ostream& fout)
|
||||||
std::set<std::string>::iterator i;
|
std::set<std::string>::iterator i;
|
||||||
for(i = emitted.begin(); i != emitted.end(); ++i)
|
for(i = emitted.begin(); i != emitted.end(); ++i)
|
||||||
{
|
{
|
||||||
fout << "cmake.depends:: " << *i <<
|
fout << "cmake.depends: " << *i << "\n";
|
||||||
"\n\t$(MAKE) $(MAKESILENT) dependlocal\n\n";
|
|
||||||
}
|
}
|
||||||
|
fout << "cmake.depends: \n"
|
||||||
|
<< "\t$(MAKE) $(MAKESILENT) dependlocal\n\n";
|
||||||
fout << "\n\n";
|
fout << "\n\n";
|
||||||
fout << "# if a .h file is removed then run make dependlocal\n\n";
|
fout << "# if a .h file is removed then run make dependlocal\n\n";
|
||||||
for(std::set<std::string>::iterator it = emitted.begin();
|
for(std::set<std::string>::iterator it = emitted.begin();
|
||||||
|
|
Loading…
Reference in New Issue