diff options
Diffstat (limited to 'Source/cmTargetLinkLibrariesCommand.cxx')
-rw-r--r-- | Source/cmTargetLinkLibrariesCommand.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmTargetLinkLibrariesCommand.cxx b/Source/cmTargetLinkLibrariesCommand.cxx index 71d649f..4753bd8 100644 --- a/Source/cmTargetLinkLibrariesCommand.cxx +++ b/Source/cmTargetLinkLibrariesCommand.cxx @@ -27,8 +27,6 @@ bool cmTargetLinkLibrariesCommand::InitialPass(std::vector<std::string> return false; } - m_TargetName = args[0]; - // but we might not have any libs after variable expansion if(args.size() < 2) { @@ -48,7 +46,7 @@ bool cmTargetLinkLibrariesCommand::InitialPass(std::vector<std::string> this->SetError("The \"debug\" argument must be followed by a library"); return false; } - m_Makefile->AddLinkLibraryForTarget(args[0].c_str(),i->c_str(), + this->Makefile->AddLinkLibraryForTarget(args[0].c_str(),i->c_str(), cmTarget::DEBUG); } else if (*i == "optimized") @@ -60,12 +58,12 @@ bool cmTargetLinkLibrariesCommand::InitialPass(std::vector<std::string> "The \"optimized\" argument must be followed by a library"); return false; } - m_Makefile->AddLinkLibraryForTarget(args[0].c_str(),i->c_str(), + this->Makefile->AddLinkLibraryForTarget(args[0].c_str(),i->c_str(), cmTarget::OPTIMIZED); } else { - m_Makefile->AddLinkLibraryForTarget(args[0].c_str(),i->c_str(), + this->Makefile->AddLinkLibraryForTarget(args[0].c_str(),i->c_str(), cmTarget::GENERAL); } } |