summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-07-24 15:37:43 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-07-24 15:37:43 (GMT)
commit85d16ea235ad43f37228228c27c001d888defd73 (patch)
tree5316fefd1b6effa7613a526c530a30976f8d3548 /Source
parent62d5138ca36bae6c771b68ff7389ebf25e345d24 (diff)
downloadCMake-85d16ea235ad43f37228228c27c001d888defd73.zip
CMake-85d16ea235ad43f37228228c27c001d888defd73.tar.gz
CMake-85d16ea235ad43f37228228c27c001d888defd73.tar.bz2
fix for utility depends bug#76
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 8a16544..ffcd929 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -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") << " = ";