1CMP0048 2------- 3 4The :command:`project` command manages ``VERSION`` variables. 5 6CMake version 3.0 introduced the ``VERSION`` option of the :command:`project` 7command to specify a project version as well as the name. In order to keep 8:variable:`PROJECT_VERSION` and related variables consistent with variable 9:variable:`PROJECT_NAME` it is necessary to set the ``VERSION`` variables 10to the empty string when no ``VERSION`` is given to :command:`project`. 11However, this can change behavior for existing projects that set ``VERSION`` 12variables themselves since :command:`project` may now clear them. 13This policy controls the behavior for compatibility with such projects. 14 15The ``OLD`` behavior for this policy is to leave ``VERSION`` variables untouched. 16The ``NEW`` behavior for this policy is to set ``VERSION`` as documented by the 17:command:`project` command. 18 19This policy was introduced in CMake version 3.0. 20CMake version |release| warns when the policy is not set and uses 21``OLD`` behavior. Use the :command:`cmake_policy` command to set 22it to ``OLD`` or ``NEW`` explicitly. 23 24.. include:: DEPRECATED.txt 25