summaryrefslogtreecommitdiffstats
path: root/Source/cmProjectCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-05-08 21:03:39 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-05-08 21:03:39 (GMT)
commitcdffbea01716b94ebc1fbe36900b5a9694047c55 (patch)
treeba17055a2b8ef6a520d4e0011f7cb4643f5cb275 /Source/cmProjectCommand.cxx
parent67e31b789f0db7431232e499268cd2caed460bf5 (diff)
downloadCMake-cdffbea01716b94ebc1fbe36900b5a9694047c55.zip
CMake-cdffbea01716b94ebc1fbe36900b5a9694047c55.tar.gz
CMake-cdffbea01716b94ebc1fbe36900b5a9694047c55.tar.bz2
now adds src and bin dir into cache
Diffstat (limited to 'Source/cmProjectCommand.cxx')
-rw-r--r--Source/cmProjectCommand.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmProjectCommand.cxx b/Source/cmProjectCommand.cxx
index 8935dc5..206e676 100644
--- a/Source/cmProjectCommand.cxx
+++ b/Source/cmProjectCommand.cxx
@@ -57,8 +57,16 @@ bool cmProjectCommand::Invoke(std::vector<std::string>& args)
m_Makefile->AddDefinition(bindir.c_str(),
m_Makefile->GetCurrentOutputDirectory());
+ cmCacheManager::GetInstance()->
+ AddCacheEntry(bindir.c_str(),
+ m_Makefile->GetCurrentOutputDirectory(),
+ "Value Computed by CMake", cmCacheManager::PATH);
m_Makefile->AddDefinition(srcdir.c_str(),
m_Makefile->GetCurrentDirectory());
+ cmCacheManager::GetInstance()->
+ AddCacheEntry(srcdir.c_str(),
+ m_Makefile->GetCurrentDirectory(),
+ "Value Computed by CMake", cmCacheManager::PATH);
return true;
}