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/cmProjectCommand.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/cmProjectCommand.cxx')
-rw-r--r-- | Source/cmProjectCommand.cxx | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/Source/cmProjectCommand.cxx b/Source/cmProjectCommand.cxx index 96e17e6..30ebef3 100644 --- a/Source/cmProjectCommand.cxx +++ b/Source/cmProjectCommand.cxx @@ -55,18 +55,12 @@ bool cmProjectCommand::InitialPass(std::vector<std::string>& args) std::string srcdir = args[0]; srcdir += "_SOURCE_DIR"; - m_Makefile->AddDefinition(bindir.c_str(), - m_Makefile->GetCurrentOutputDirectory()); - cmCacheManager::GetInstance()-> - AddCacheEntry(bindir.c_str(), - m_Makefile->GetCurrentOutputDirectory(), - "Value Computed by CMake", cmCacheManager::STATIC); - m_Makefile->AddDefinition(srcdir.c_str(), - m_Makefile->GetCurrentDirectory()); - cmCacheManager::GetInstance()-> - AddCacheEntry(srcdir.c_str(), - m_Makefile->GetCurrentDirectory(), - "Value Computed by CMake", cmCacheManager::STATIC); + m_Makefile->AddCacheDefinition(bindir.c_str(), + m_Makefile->GetCurrentOutputDirectory(), + "Value Computed by CMake", cmCacheManager::STATIC); + m_Makefile->AddCacheDefinition(srcdir.c_str(), + m_Makefile->GetCurrentDirectory(), + "Value Computed by CMake", cmCacheManager::STATIC); bindir = "PROJECT_BINARY_DIR"; srcdir = "PROJECT_SOURCE_DIR"; |