summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Source/cmProjectCommand.cxx2
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;
}