summaryrefslogtreecommitdiffstats
path: root/Help/release
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2018-04-29 14:09:40 (GMT)
committerCraig Scott <craig.scott@crascit.com>2018-05-02 22:26:03 (GMT)
commitaf1c48871cedc29eb0dc773556c606c670df55ee (patch)
treeb63e5a9cbfe70122491e277978cbe50f6ec254fc /Help/release
parent1925fe9fed9ef4007e344fdf1fa598e9ad523c4c (diff)
downloadCMake-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/release')
-rw-r--r--Help/release/dev/cpack-use-project-version.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Help/release/dev/cpack-use-project-version.rst b/Help/release/dev/cpack-use-project-version.rst
new file mode 100644
index 0000000..b17754a
--- /dev/null
+++ b/Help/release/dev/cpack-use-project-version.rst
@@ -0,0 +1,10 @@
+cpack-use-project-version
+-------------------------
+
+* Introduce :variable:`CMAKE_PROJECT_VERSION` and the corresponding components:
+ :variable:`CMAKE_PROJECT_VERSION_MAJOR`, :variable:`CMAKE_PROJECT_VERSION_MINOR`,
+ :variable:`CMAKE_PROJECT_VERSION_PATCH` and :variable:`CMAKE_PROJECT_VERSION_TWEAK`.
+
+* :module:`CPack` module use :variable:`CMAKE_PROJECT_VERSION_MAJOR`,
+ :variable:`CMAKE_PROJECT_VERSION_MINOR` and :variable:`CMAKE_PROJECT_VERSION_PATCH`
+ to initialize corresponding CPack variables.