From 17b02b6530e94012df32dbb3d6dc308714acfe70 Mon Sep 17 00:00:00 2001 From: Amitha Perera Date: Mon, 18 Jun 2001 16:54:13 -0400 Subject: ENH: LINK_LIBRARIES(abc) will automatically add the path to abc to the link directories, if the path is known. --- Source/cmLinkLibrariesCommand.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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& args) { m_Makefile->AddLinkLibrary(i->c_str()); } + + const char* dir = cmCacheManager::GetInstance()->GetCacheValue(i->c_str()); + if( dir ) + { + m_Makefile->AddLinkDirectory( dir ); + } } return true; } -- cgit v0.12