From 43237a88c58ac5dac1b4644b7ee1d1fb8ef1e48f Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Wed, 23 May 2001 10:01:10 -0400 Subject: added PROJECT_SOURCE_DIR --- Source/cmProjectCommand.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/cmProjectCommand.cxx b/Source/cmProjectCommand.cxx index 396d750..6b149f9 100644 --- a/Source/cmProjectCommand.cxx +++ b/Source/cmProjectCommand.cxx @@ -68,6 +68,14 @@ bool cmProjectCommand::Invoke(std::vector& args) m_Makefile->GetCurrentDirectory(), "Value Computed by CMake", cmCacheManager::STATIC); + bindir = "PROJECT_BINARY_DIR"; + srcdir = "PROJECT_SOURCE_DIR"; + + m_Makefile->AddDefinition(bindir.c_str(), + m_Makefile->GetCurrentOutputDirectory()); + m_Makefile->AddDefinition(srcdir.c_str(), + m_Makefile->GetCurrentDirectory()); + return true; } -- cgit v0.12