summaryrefslogtreecommitdiffstats
path: root/Source/cmProjectCommand.cxx
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-10-17 19:11:02 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2001-10-17 19:11:02 (GMT)
commit71fe9280cb8736c67eaba649258c44feb4a97db3 (patch)
treee728ca6d06a57b07a028858a68ef62d18731b940 /Source/cmProjectCommand.cxx
parent7008bdcb10bdd4f7d25af3ae3f1bd65106b34682 (diff)
downloadCMake-71fe9280cb8736c67eaba649258c44feb4a97db3.zip
CMake-71fe9280cb8736c67eaba649258c44feb4a97db3.tar.gz
CMake-71fe9280cb8736c67eaba649258c44feb4a97db3.tar.bz2
Add PROJECT_NAME to the set of definitions
Diffstat (limited to 'Source/cmProjectCommand.cxx')
-rw-r--r--Source/cmProjectCommand.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmProjectCommand.cxx b/Source/cmProjectCommand.cxx
index 9926c25..5eb9241 100644
--- a/Source/cmProjectCommand.cxx
+++ b/Source/cmProjectCommand.cxx
@@ -70,6 +70,8 @@ bool cmProjectCommand::InitialPass(std::vector<std::string> const& args)
m_Makefile->AddDefinition(srcdir.c_str(),
m_Makefile->GetCurrentDirectory());
+ m_Makefile->AddDefinition("PROJECT_NAME", args[0].c_str());
+
return true;
}