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:
parent
1f773c3ea9
commit
17b02b6530
|
@ -69,6 +69,12 @@ bool cmLinkLibrariesCommand::InitialPass(std::vector<std::string>& args)
|
||||||
{
|
{
|
||||||
m_Makefile->AddLinkLibrary(i->c_str());
|
m_Makefile->AddLinkLibrary(i->c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char* dir = cmCacheManager::GetInstance()->GetCacheValue(i->c_str());
|
||||||
|
if( dir )
|
||||||
|
{
|
||||||
|
m_Makefile->AddLinkDirectory( dir );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue