diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2018-04-29 14:09:40 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2018-05-02 22:26:03 (GMT) |
commit | af1c48871cedc29eb0dc773556c606c670df55ee (patch) | |
tree | b63e5a9cbfe70122491e277978cbe50f6ec254fc /Help/command | |
parent | 1925fe9fed9ef4007e344fdf1fa598e9ad523c4c (diff) | |
download | CMake-af1c48871cedc29eb0dc773556c606c670df55ee.zip CMake-af1c48871cedc29eb0dc773556c606c670df55ee.tar.gz CMake-af1c48871cedc29eb0dc773556c606c670df55ee.tar.bz2 |
CPack: Use project version as default for `CPACK_PACKAGE_VERSION`
* Introduce `CMAKE_PROJECT_VERSION` and the corresponsing components:
`CMAKE_PROJECT_VERSION_MAJOR`, `CMAKE_PROJECT_VERSION_MINOR`,
`CMAKE_PROJECT_VERSION_PATCH` and `CMAKE_PROJECT_VERSION_TWEAK`.
* `CPack` module use `CMAKE_PROJECT_VERSION_MAJOR`,
`CMAKE_PROJECT_VERSION_MINOR` and `CMAKE_PROJECT_VERSION_PATCH`
to initialize corresponsing CPack variables.
Diffstat (limited to 'Help/command')
-rw-r--r-- | Help/command/project.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Help/command/project.rst b/Help/command/project.rst index e46dd69..c1de057 100644 --- a/Help/command/project.rst +++ b/Help/command/project.rst @@ -76,8 +76,9 @@ call exists CMake will implicitly add one to the top that enables the default languages (``C`` and ``CXX``). The name of the project set in the top level ``CMakeLists.txt`` file is available from the :variable:`CMAKE_PROJECT_NAME` variable, its description from -:variable:`CMAKE_PROJECT_DESCRIPTION` and its homepage URL from -:variable:`CMAKE_PROJECT_HOMEPAGE_URL`. +:variable:`CMAKE_PROJECT_DESCRIPTION`, its homepage URL from +:variable:`CMAKE_PROJECT_HOMEPAGE_URL` and its version from +:variable:`CMAKE_PROJECT_VERSION`. .. note:: Call the :command:`cmake_minimum_required` command at the beginning |