CMAKE_POLICY_WARNING_CMPNNNN.rst 900 B

123456789101112131415161718192021
  1. CMAKE_POLICY_WARNING_CMP<NNNN>
  2. ------------------------------
  3. Explicitly enable or disable the warning when CMake Policy ``CMP<NNNN>``
  4. is not set. This is meaningful only for the few policies that do not
  5. warn by default:
  6. * ``CMAKE_POLICY_WARNING_CMP0025`` controls the warning for
  7. policy :policy:`CMP0025`.
  8. * ``CMAKE_POLICY_WARNING_CMP0047`` controls the warning for
  9. policy :policy:`CMP0047`.
  10. * ``CMAKE_POLICY_WARNING_CMP0056`` controls the warning for
  11. policy :policy:`CMP0056`.
  12. * ``CMAKE_POLICY_WARNING_CMP0060`` controls the warning for
  13. policy :policy:`CMP0060`.
  14. This variable should not be set by a project in CMake code. Project
  15. developers running CMake may set this variable in their cache to
  16. enable the warning (e.g. ``-DCMAKE_POLICY_WARNING_CMP<NNNN>=ON``).
  17. Alternatively, running :manual:`cmake(1)` with the ``--debug-output``
  18. or ``--trace`` option will also enable the warning.