mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 00:00:39 -05:00
Merge topic 'project-description'
3b484871 project: Add `DESCRIPTION` parameter
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !679
This commit is contained in:
@@ -8,6 +8,7 @@ Set a name, version, and enable languages for the entire project.
|
||||
project(<PROJECT-NAME> [LANGUAGES] [<language-name>...])
|
||||
project(<PROJECT-NAME>
|
||||
[VERSION <major>[.<minor>[.<patch>[.<tweak>]]]]
|
||||
[DESCRIPTION <project-description-string>]
|
||||
[LANGUAGES <language-name>...])
|
||||
|
||||
Sets the name of the project and stores the name in the
|
||||
@@ -40,6 +41,10 @@ in variables
|
||||
Variables corresponding to unspecified versions are set to the empty string
|
||||
(if policy :policy:`CMP0048` is set to ``NEW``).
|
||||
|
||||
If optional ``DESCRIPTION`` is given, then additional :variable:`PROJECT_DESCRIPTION`
|
||||
variable will be set to its argument. The argument must be a string with short
|
||||
description of the project (only a few words).
|
||||
|
||||
Optionally you can specify which languages your project supports.
|
||||
Example languages are ``C``, ``CXX`` (i.e. C++), ``Fortran``, etc.
|
||||
By default ``C`` and ``CXX`` are enabled if no language options are
|
||||
|
||||
@@ -60,6 +60,7 @@ Variables that Provide Information
|
||||
/variable/CMAKE_MINOR_VERSION
|
||||
/variable/CMAKE_PARENT_LIST_FILE
|
||||
/variable/CMAKE_PATCH_VERSION
|
||||
/variable/CMAKE_PROJECT_DESCRIPTION
|
||||
/variable/CMAKE_PROJECT_NAME
|
||||
/variable/CMAKE_RANLIB
|
||||
/variable/CMAKE_ROOT
|
||||
@@ -97,6 +98,7 @@ Variables that Provide Information
|
||||
/variable/PROJECT-NAME_VERSION_PATCH
|
||||
/variable/PROJECT-NAME_VERSION_TWEAK
|
||||
/variable/PROJECT_BINARY_DIR
|
||||
/variable/PROJECT_DESCRIPTION
|
||||
/variable/PROJECT_NAME
|
||||
/variable/PROJECT_SOURCE_DIR
|
||||
/variable/PROJECT_VERSION
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
project-description
|
||||
-------------------
|
||||
|
||||
* The :command:`project` command learned an optional ``DESCRIPTION`` parameter.
|
||||
See :command:`project` command and :variable:`PROJECT_DESCRIPTION` variable.
|
||||
@@ -0,0 +1,7 @@
|
||||
CMAKE_PROJECT_DESCRIPTION
|
||||
-------------------------
|
||||
|
||||
The description of the current project.
|
||||
|
||||
This specifies description of the current project from the closest inherited
|
||||
:command:`project` command.
|
||||
@@ -0,0 +1,6 @@
|
||||
PROJECT_DESCRIPTION
|
||||
-------------------
|
||||
|
||||
Short project description given to the project command.
|
||||
|
||||
This is the description given to the most recent :command:`project` command.
|
||||
Reference in New Issue
Block a user