summaryrefslogtreecommitdiff
path: root/Source/cmLinkLibrariesCommand.cxx
diff options
context:
space:
mode:
authorAmitha Perera <perera@cs.rpi.edu>2001-06-18 16:54:13 -0400
committerAmitha Perera <perera@cs.rpi.edu>2001-06-18 16:54:13 -0400
commit17b02b6530e94012df32dbb3d6dc308714acfe70 (patch)
treebcb7af322a6a5247bbee6860aabee61ecf5c3e1e /Source/cmLinkLibrariesCommand.cxx
parent1f773c3ea9e647f4ae05d1f633571afb2481261d (diff)
downloadcmake-17b02b6530e94012df32dbb3d6dc308714acfe70.tar.gz
ENH: LINK_LIBRARIES(abc) will automatically add the path to abc to the
link directories, if the path is known.
Diffstat (limited to 'Source/cmLinkLibrariesCommand.cxx')
-rw-r--r--Source/cmLinkLibrariesCommand.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLinkLibrariesCommand.cxx b/Source/cmLinkLibrariesCommand.cxx
index 683314c467..246a5d3550 100644
--- a/Source/cmLinkLibrariesCommand.cxx
+++ b/Source/cmLinkLibrariesCommand.cxx
@@ -69,6 +69,12 @@ bool cmLinkLibrariesCommand::InitialPass(std::vector<std::string>& args)
{
m_Makefile->AddLinkLibrary(i->c_str());
}
+
+ const char* dir = cmCacheManager::GetInstance()->GetCacheValue(i->c_str());
+ if( dir )
+ {
+ m_Makefile->AddLinkDirectory( dir );
+ }
}
return true;
}