ENH: LINK_LIBRARIES(abc) will automatically add the path to abc to the

link directories, if the path is known.
This commit is contained in:
Amitha Perera 2001-06-18 16:54:13 -04:00
parent 1f773c3ea9
commit 17b02b6530
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}