diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-05 23:41:24 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-05 23:41:24 (GMT) |
commit | 4651dbcfc64836988649c2ca7e3e30c811723eb2 (patch) | |
tree | 78393201554f92b9e59bc8c5893f6e28a2ab2dbb /Source/cmAddDependenciesCommand.cxx | |
parent | 2b9140f6b512784f65dfa58ff1b9076fd6f9227d (diff) | |
download | CMake-4651dbcfc64836988649c2ca7e3e30c811723eb2.zip CMake-4651dbcfc64836988649c2ca7e3e30c811723eb2.tar.gz CMake-4651dbcfc64836988649c2ca7e3e30c811723eb2.tar.bz2 |
ENH: expand variables in arguments before the commands get them
Diffstat (limited to 'Source/cmAddDependenciesCommand.cxx')
-rw-r--r-- | Source/cmAddDependenciesCommand.cxx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/Source/cmAddDependenciesCommand.cxx b/Source/cmAddDependenciesCommand.cxx index e8f5c6a..c4cc00c 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()); |