diff options
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()); |