diff --git a/Source/cmLinkLibrariesCommand.cxx b/Source/cmLinkLibrariesCommand.cxx index 683314c46..246a5d355 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; }