CMAKE_POLICY_WARNING_CMPNNNN.rst 724 B

1234567891011121314151617
  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. This variable should not be set by a project in CMake code. Project
  11. developers running CMake may set this variable in their cache to
  12. enable the warning (e.g. ``-DCMAKE_POLICY_WARNING_CMP<NNNN>=ON``).
  13. Alternatively, running :manual:`cmake(1)` with the ``--debug-output``
  14. or ``--trace`` option will also enable the warning.