mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user