mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
ENH: big change, only allow commands access to the cache via the cmMakefile class and GetDefinition, also the cmMakefile is the only way for commands to add to the cache. Also, some changes to configure.in that check for for scoping
This commit is contained in:
@@ -70,7 +70,7 @@ bool cmLinkLibrariesCommand::InitialPass(std::vector<std::string>& args)
|
||||
m_Makefile->AddLinkLibrary(i->c_str());
|
||||
}
|
||||
|
||||
const char* dir = cmCacheManager::GetInstance()->GetCacheValue(i->c_str());
|
||||
const char* dir = m_Makefile->GetDefinition(i->c_str());
|
||||
if( dir )
|
||||
{
|
||||
m_Makefile->AddLinkDirectory( dir );
|
||||
|
||||
Reference in New Issue
Block a user