fix for utility depends bug#76

This commit is contained in:
Ken Martin 2003-07-24 11:37:43 -04:00
parent 62d5138ca3
commit 85d16ea235
1 changed files with 2 additions and 0 deletions

View File

@ -1244,6 +1244,7 @@ void cmLocalUnixMakefileGenerator::OutputUtilityRule(std::ostream& fout,
}
std::string comment = "Utility";
std::string depends;
depends = "$(" + this->CreateMakeVariable(name, "_DEPEND_LIBS") + ")";
std::string replaceVars;
const std::vector<cmCustomCommand> &ccs = t.GetPostBuildCommands();
for(std::vector<cmCustomCommand>::const_iterator i = ccs.begin();
@ -1322,6 +1323,7 @@ void cmLocalUnixMakefileGenerator::OutputDependLibs(std::ostream& fout)
|| (l->second.GetType() == cmTarget::MODULE_LIBRARY)
|| (l->second.GetType() == cmTarget::STATIC_LIBRARY)
|| (l->second.GetType() == cmTarget::EXECUTABLE)
|| (l->second.GetType() == cmTarget::UTILITY)
|| (l->second.GetType() == cmTarget::WIN32_EXECUTABLE))
{
fout << this->CreateMakeVariable(l->first.c_str(), "_DEPEND_LIBS") << " = ";