summaryrefslogtreecommitdiffstats
path: root/Source/cmProjectCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-05-23 14:01:10 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-05-23 14:01:10 (GMT)
commit43237a88c58ac5dac1b4644b7ee1d1fb8ef1e48f (patch)
treec853a5334280585f678ce6087ce2e6ddd943d0e3 /Source/cmProjectCommand.cxx
parente606732b941f73d2183a7ccf87beb38abc2832d9 (diff)
downloadCMake-43237a88c58ac5dac1b4644b7ee1d1fb8ef1e48f.zip
CMake-43237a88c58ac5dac1b4644b7ee1d1fb8ef1e48f.tar.gz
CMake-43237a88c58ac5dac1b4644b7ee1d1fb8ef1e48f.tar.bz2
added PROJECT_SOURCE_DIR
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 396d750..6b149f9 100644
--- a/Source/cmProjectCommand.cxx
+++ b/Source/cmProjectCommand.cxx
@@ -68,6 +68,14 @@ bool cmProjectCommand::Invoke(std::vector<std::string>& 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;
}