summaryrefslogtreecommitdiff
path: root/Source/cmProjectCommand.cxx
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2018-03-16 07:18:42 +1100
committerCraig Scott <craig.scott@crascit.com>2018-03-17 08:25:48 +1100
commitfd28c382b44ee355099750419ecd46e0aa175de0 (patch)
treea3fa7b4829927a539d226545a14dbb9d37800368 /Source/cmProjectCommand.cxx
parent9b57cb62ea7f1557694054b552cbeb39fb12788e (diff)
downloadcmake-fd28c382b44ee355099750419ecd46e0aa175de0.tar.gz
project: Add <PROJECT-NAME>_DESCRIPTION
For consistency with the VERSION keyword, also define the <PROJECT-NAME>_DESCRIPTION variable.
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 67c971f66e..3470648059 100644
--- a/Source/cmProjectCommand.cxx
+++ b/Source/cmProjectCommand.cxx
@@ -261,6 +261,8 @@ bool cmProjectCommand::InitialPass(std::vector<std::string> const& args,
if (haveDescription) {
this->Makefile->AddDefinition("PROJECT_DESCRIPTION", description.c_str());
+ this->Makefile->AddDefinition(projectName + "_DESCRIPTION",
+ description.c_str());
// Set the CMAKE_PROJECT_DESCRIPTION variable to be the highest-level
// project name in the tree. If there are two project commands
// in the same CMakeLists.txt file, and it is the top level