summaryrefslogtreecommitdiffstats
path: root/Source/cmTargetLinkLibrariesCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmTargetLinkLibrariesCommand.cxx')
-rw-r--r--Source/cmTargetLinkLibrariesCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTargetLinkLibrariesCommand.cxx b/Source/cmTargetLinkLibrariesCommand.cxx
index 34c57a3..143cf86 100644
--- a/Source/cmTargetLinkLibrariesCommand.cxx
+++ b/Source/cmTargetLinkLibrariesCommand.cxx
@@ -57,12 +57,12 @@ bool cmTargetLinkLibrariesCommand::InitialPass(std::vector<std::string> const& a
const char* dir = m_Makefile->GetDefinition(i->c_str());
if( dir )
{
- m_Makefile->AddLinkDirectory( dir );
+ m_Makefile->AddLinkDirectoryForTarget(args[0].c_str(), dir );
}
}
else
{
- m_Makefile->AddLinkDirectory( ldir );
+ m_Makefile->AddLinkDirectoryForTarget(args[0].c_str(), ldir );
}
}
return true;