diff options
author | Craig Scott <craig.scott@crascit.com> | 2018-03-15 20:18:42 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2018-03-16 21:25:48 (GMT) |
commit | fd28c382b44ee355099750419ecd46e0aa175de0 (patch) | |
tree | a3fa7b4829927a539d226545a14dbb9d37800368 /Source | |
parent | 9b57cb62ea7f1557694054b552cbeb39fb12788e (diff) | |
download | CMake-fd28c382b44ee355099750419ecd46e0aa175de0.zip CMake-fd28c382b44ee355099750419ecd46e0aa175de0.tar.gz CMake-fd28c382b44ee355099750419ecd46e0aa175de0.tar.bz2 |
project: Add <PROJECT-NAME>_DESCRIPTION
For consistency with the VERSION keyword, also define the
<PROJECT-NAME>_DESCRIPTION variable.
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 67c971f..3470648 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 |