diff options
author | Brad King <brad.king@kitware.com> | 2002-01-22 15:17:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-01-22 15:17:37 (GMT) |
commit | 8ed3ce29bf3b185ecc0f8b5132cac497f4150e0b (patch) | |
tree | c3aca1b0fbbc12d23eb248e20c90da27cd8a2ad7 | |
parent | 0e0e4c1a1a0121c4afb6974b93b3c1aa701fc2e8 (diff) | |
download | CMake-8ed3ce29bf3b185ecc0f8b5132cac497f4150e0b.zip CMake-8ed3ce29bf3b185ecc0f8b5132cac497f4150e0b.tar.gz CMake-8ed3ce29bf3b185ecc0f8b5132cac497f4150e0b.tar.bz2 |
ERR: Removed cmCacheManager::DefineCache method. It is no longer needed.
-rw-r--r-- | Source/cmCacheManager.cxx | 16 | ||||
-rw-r--r-- | Source/cmCacheManager.h | 3 | ||||
-rw-r--r-- | Source/cmLoadCacheCommand.cxx | 3 | ||||
-rw-r--r-- | Source/cmMakefile.cxx | 3 | ||||
-rw-r--r-- | Source/cmake.cxx | 3 |
5 files changed, 3 insertions, 25 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index 3ab8904..ba4f76f 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -256,22 +256,6 @@ bool cmCacheManager::LoadCache(const char* path, return true; } -void cmCacheManager::DefineCache(cmMakefile *mf) -{ - if (!mf) - { - return; - } - - // add definition to the makefile - for( std::map<cmStdString, CacheEntry>::const_iterator i = m_Cache.begin(); - i != m_Cache.end(); ++i) - { - const CacheEntry& ce = (*i).second; - mf->AddDefinition((*i).first.c_str(), ce.m_Value.c_str()); - } -} - bool cmCacheManager::SaveCache(cmMakefile* mf) { return this->SaveCache(mf->GetHomeOutputDirectory()); diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h index d557b66..54a1d10 100644 --- a/Source/cmCacheManager.h +++ b/Source/cmCacheManager.h @@ -58,9 +58,6 @@ public: std::set<std::string>& excludes, std::set<std::string>& includes); - ///! Put cache definitions into makefile - void DefineCache(cmMakefile*); - ///! Save cache for given makefile. Saves to ouput home CMakeCache.txt. bool SaveCache(cmMakefile*) ; ///! Save cache for given makefile. Saves to ouput path/CMakeCache.txt diff --git a/Source/cmLoadCacheCommand.cxx b/Source/cmLoadCacheCommand.cxx index 2076435..9ea56e6 100644 --- a/Source/cmLoadCacheCommand.cxx +++ b/Source/cmLoadCacheCommand.cxx @@ -73,6 +73,8 @@ bool cmLoadCacheCommand::InitialPass(std::vector<std::string> const& argsIn) } } + // Loop over each build directory listed in the arguments. Each + // directory has a cache file. for(i=0; i<args.size(); i++) { if ((args[i] == "EXCLUDE") || (args[i] == "INCLUDE_INTERNALS")) @@ -82,7 +84,6 @@ bool cmLoadCacheCommand::InitialPass(std::vector<std::string> const& argsIn) m_Makefile->ExpandVariablesInString(args[i]); cmCacheManager::GetInstance()->LoadCache(args[i].c_str(), false, excludes, includes); - cmCacheManager::GetInstance()->DefineCache(m_Makefile); } diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 506130a..deead3e 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -52,7 +52,6 @@ cmMakefile::cmMakefile() this->AddSourceGroup("Header Files", "\\.(h|hh|hpp|hxx|hm|inl)$"); this->AddDefaultCommands(); this->AddDefaultDefinitions(); - cmCacheManager::GetInstance()->DefineCache(this); } unsigned int cmMakefile::GetCacheMajorVersion() @@ -885,7 +884,7 @@ const char *cmMakefile::ExpandVariablesInString(std::string& source, bool atOnly) const { // This method replaces ${VAR} and @VAR@ where VAR is looked up - // in the m_Definitions map, if not found in the map, nothing is expanded. + // with GetDefinition(), if not found in the map, nothing is expanded. // It also supports the $ENV{VAR} syntax where VAR is looked up in // the current environment variables. diff --git a/Source/cmake.cxx b/Source/cmake.cxx index c65ca8a..6c845cb 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -384,9 +384,6 @@ int cmake::Generate(const std::vector<std::string>& args, bool buildMakefiles) // compute system info gen->ComputeSystemInfo(); - // Transfer the cache into the makefile's definitions. - cmCacheManager::GetInstance()->DefineCache(&mf); - std::string lf = mf.GetStartDirectory(); lf += "/CMakeLists.txt"; if(!mf.ReadListFile(lf.c_str())) |