diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2001-10-17 19:11:02 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2001-10-17 19:11:02 (GMT) |
commit | 71fe9280cb8736c67eaba649258c44feb4a97db3 (patch) | |
tree | e728ca6d06a57b07a028858a68ef62d18731b940 /Source | |
parent | 7008bdcb10bdd4f7d25af3ae3f1bd65106b34682 (diff) | |
download | CMake-71fe9280cb8736c67eaba649258c44feb4a97db3.zip CMake-71fe9280cb8736c67eaba649258c44feb4a97db3.tar.gz CMake-71fe9280cb8736c67eaba649258c44feb4a97db3.tar.bz2 |
Add PROJECT_NAME to the set of definitions
Diffstat (limited to 'Source')
-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 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; } |