From cdffbea01716b94ebc1fbe36900b5a9694047c55 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Tue, 8 May 2001 17:03:39 -0400 Subject: now adds src and bin dir into cache --- Source/cmProjectCommand.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) 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& 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; } -- cgit v0.12