diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-08-08 15:54:46 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-08-08 15:54:46 (GMT) |
commit | db1303aa7d00f49a0fdf66f120eb3e6cb0e445fe (patch) | |
tree | ad569e72f02849e50e625faa1350bb05a3af08f9 /Source/cmCableWrapTclCommand.cxx | |
parent | 61ec323b6a1c4e5a44331014447e3d1d31dc1b6b (diff) | |
download | CMake-db1303aa7d00f49a0fdf66f120eb3e6cb0e445fe.zip CMake-db1303aa7d00f49a0fdf66f120eb3e6cb0e445fe.tar.gz CMake-db1303aa7d00f49a0fdf66f120eb3e6cb0e445fe.tar.bz2 |
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
Diffstat (limited to 'Source/cmCableWrapTclCommand.cxx')
-rw-r--r-- | Source/cmCableWrapTclCommand.cxx | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/Source/cmCableWrapTclCommand.cxx b/Source/cmCableWrapTclCommand.cxx index c1227b9..b77825f 100644 --- a/Source/cmCableWrapTclCommand.cxx +++ b/Source/cmCableWrapTclCommand.cxx @@ -408,15 +408,14 @@ void cmCableWrapTclCommand::GenerateCableClassFiles(const char* name, std::string cmCableWrapTclCommand::GetGccXmlFromCache() const { const char* gccxml = - cmCacheManager::GetInstance()->GetCacheValue("GCCXML"); + m_Makefile->GetDefinition("GCCXML"); if(gccxml) { return gccxml; } - m_Makefile->AddDefinition("GCCXML","NOTFOUND"); - cmCacheManager::GetInstance()->AddCacheEntry("GCCXML", - "NOTFOUND", - "Path to GCC-XML executable.", - cmCacheManager::FILEPATH); + m_Makefile->AddCacheDefinition("GCCXML", + "NOTFOUND", + "Path to GCC-XML executable.", + cmCacheManager::FILEPATH); return "NOTFOUND"; } @@ -428,12 +427,11 @@ std::string cmCableWrapTclCommand::GetGccXmlFromCache() const std::string cmCableWrapTclCommand::GetGccXmlFlagsFromCache() const { const char* gccxmlFlags = - cmCacheManager::GetInstance()->GetCacheValue("GCCXML_FLAGS"); + m_Makefile->GetDefinition("GCCXML_FLAGS"); if(gccxmlFlags) { return gccxmlFlags; } - m_Makefile->AddDefinition("GCCXML_FLAGS",""); - cmCacheManager::GetInstance()->AddCacheEntry( + m_Makefile->AddCacheDefinition( "GCCXML_FLAGS", "", "Flags to GCC-XML to get it to parse the native compiler's headers.", @@ -449,14 +447,13 @@ std::string cmCableWrapTclCommand::GetGccXmlFlagsFromCache() const std::string cmCableWrapTclCommand::GetCableFromCache() const { const char* cable = - cmCacheManager::GetInstance()->GetCacheValue("CABLE"); + m_Makefile->GetDefinition("CABLE"); if(cable) { return cable; } - m_Makefile->AddDefinition("CABLE","NOTFOUND"); - cmCacheManager::GetInstance()->AddCacheEntry("CABLE", - "NOTFOUND", - "Path to CABLE executable.", - cmCacheManager::FILEPATH); + m_Makefile->AddCacheDefinition("CABLE", + "NOTFOUND", + "Path to CABLE executable.", + cmCacheManager::FILEPATH); return "NOTFOUND"; } |