CMP0048.rst 1.1 KB

123456789101112131415161718192021222324
  1. CMP0048
  2. -------
  3. .. |REMOVED_IN_CMAKE_VERSION| replace:: 4.0
  4. .. include:: include/REMOVED_PROLOGUE.rst
  5. The :command:`project` command manages ``VERSION`` variables.
  6. CMake version 3.0 introduced the ``VERSION`` option of the :command:`project`
  7. command 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
  10. to the empty string when no ``VERSION`` is given to :command:`project`.
  11. However, this can change behavior for existing projects that set ``VERSION``
  12. variables themselves since :command:`project` may now clear them.
  13. This policy controls the behavior for compatibility with such projects.
  14. The ``OLD`` behavior for this policy is to leave ``VERSION`` variables untouched.
  15. The ``NEW`` behavior for this policy is to set ``VERSION`` as documented by the
  16. :command:`project` command.
  17. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.0
  18. .. |WARNED_OR_DID_NOT_WARN| replace:: warned
  19. .. include:: include/REMOVED_EPILOGUE.rst