summaryrefslogtreecommitdiffstats
path: root/Source/cmLinkLibrariesCommand.cxx
diff options
context:
space:
mode:
authorAmitha Perera <perera@cs.rpi.edu>2001-06-18 20:54:13 (GMT)
committerAmitha Perera <perera@cs.rpi.edu>2001-06-18 20:54:13 (GMT)
commit17b02b6530e94012df32dbb3d6dc308714acfe70 (patch)
treebcb7af322a6a5247bbee6860aabee61ecf5c3e1e /Source/cmLinkLibrariesCommand.cxx
parent1f773c3ea9e647f4ae05d1f633571afb2481261d (diff)
downloadCMake-17b02b6530e94012df32dbb3d6dc308714acfe70.zip
CMake-17b02b6530e94012df32dbb3d6dc308714acfe70.tar.gz
CMake-17b02b6530e94012df32dbb3d6dc308714acfe70.tar.bz2
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 683314c..246a5d3 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;
}