diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2001-10-17 15:11:02 -0400 |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2001-10-17 15:11:02 -0400 |
commit | 71fe9280cb8736c67eaba649258c44feb4a97db3 (patch) | |
tree | e728ca6d06a57b07a028858a68ef62d18731b940 /Source/cmProjectCommand.cxx | |
parent | 7008bdcb10bdd4f7d25af3ae3f1bd65106b34682 (diff) | |
download | cmake-71fe9280cb8736c67eaba649258c44feb4a97db3.tar.gz |
Add PROJECT_NAME to the set of definitions
Diffstat (limited to 'Source/cmProjectCommand.cxx')
-rw-r--r-- | Source/cmProjectCommand.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmProjectCommand.cxx b/Source/cmProjectCommand.cxx index 9926c25b84..5eb9241ec4 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; } |