CMAKE_POLICY_DEFAULT_CMPNNNN.rst 766 B

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