summaryrefslogtreecommitdiff
path: root/Source/cmAddDependenciesCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-03-05 18:41:24 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2002-03-05 18:41:24 -0500
commit4651dbcfc64836988649c2ca7e3e30c811723eb2 (patch)
tree78393201554f92b9e59bc8c5893f6e28a2ab2dbb /Source/cmAddDependenciesCommand.cxx
parent2b9140f6b512784f65dfa58ff1b9076fd6f9227d (diff)
downloadcmake-4651dbcfc64836988649c2ca7e3e30c811723eb2.tar.gz
ENH: expand variables in arguments before the commands get them
Diffstat (limited to 'Source/cmAddDependenciesCommand.cxx')
-rw-r--r--Source/cmAddDependenciesCommand.cxx13
1 files changed, 1 insertions, 12 deletions
diff --git a/Source/cmAddDependenciesCommand.cxx b/Source/cmAddDependenciesCommand.cxx
index e8f5c6a27b..c4cc00ced7 100644
--- a/Source/cmAddDependenciesCommand.cxx
+++ b/Source/cmAddDependenciesCommand.cxx
@@ -27,7 +27,6 @@ bool cmAddDependenciesCommand::InitialPass(std::vector<std::string> const& args)
}
std::string target_name = args[0];
- m_Makefile->ExpandVariablesInString(target_name);
cmTargets &tgts = m_Makefile->GetTargets();
if (tgts.find(target_name) != tgts.end())
@@ -37,21 +36,11 @@ bool cmAddDependenciesCommand::InitialPass(std::vector<std::string> const& args)
std::string depend_target;
for (; s != args.end(); ++s)
{
- depend_target = *s;
- m_Makefile->ExpandVariablesInString(depend_target);
- tgts[target_name].AddUtility(depend_target.c_str());
+ tgts[target_name].AddUtility(s->c_str());
}
}
else
{
- std::cerr << "existing targets are:";
-
- for(cmTargets::iterator i = tgts.begin();
- i != tgts.end(); ++i)
- {
- std::cerr << i->first << std::endl;
- }
-
std::string error = "Adding dependency to non-existent target: ";
error += target_name;
this->SetError(error.c_str());