summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_PROJECT_VERSION_MAJOR.rst
blob: c7511e73782610229c03bfa279890e61a8210e8d (plain)
1
2
3
4
5
6
7
8
9
10
11
CMAKE_PROJECT_VERSION_MAJOR
---------------------------

.. versionadded:: 3.12

The major version of the top level project.

This variable holds the major version of the project as specified in the top
level CMakeLists.txt file by a :command:`project` command. Please see
:variable:`CMAKE_PROJECT_VERSION` documentation for the behavior when
multiple :command:`project` commands are used in the sources.