CMAKE_POLICY_DEFAULT_CMPNNNN.rst 834 B

1234567891011121314151617
  1. CMAKE_POLICY_DEFAULT_CMP<NNNN>
  2. ------------------------------
  3. Default for CMake Policy ``CMP<NNNN>`` when it is otherwise left unset.
  4. Commands :command:`cmake_minimum_required(VERSION)` and
  5. :command:`cmake_policy(VERSION)` by default leave policies introduced after
  6. the given version unset. Set ``CMAKE_POLICY_DEFAULT_CMP<NNNN>`` to ``OLD``
  7. or ``NEW`` to specify the default for policy ``CMP<NNNN>``, where ``<NNNN>``
  8. is the policy number.
  9. This variable should not be set by a project in CMake code; use
  10. :command:`cmake_policy(SET)` instead. Users running CMake may set this
  11. variable in the cache (e.g. ``-DCMAKE_POLICY_DEFAULT_CMP<NNNN>=<OLD|NEW>``)
  12. to set a policy not otherwise set by the project. Set to ``OLD`` to quiet a
  13. policy warning while using old behavior or to ``NEW`` to try building the
  14. project with new behavior.