CMAKE_POLICY_WARNING_CMPNNNN.rst 1.2 KB

123456789101112131415161718192021222324252627
  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. * ``CMAKE_POLICY_WARNING_CMP0065`` controls the warning for
  15. policy :policy:`CMP0065`.
  16. * ``CMAKE_POLICY_WARNING_CMP0066`` controls the warning for
  17. policy :policy:`CMP0066`.
  18. * ``CMAKE_POLICY_WARNING_CMP0067`` controls the warning for
  19. policy :policy:`CMP0067`.
  20. This variable should not be set by a project in CMake code. Project
  21. developers running CMake may set this variable in their cache to
  22. enable the warning (e.g. ``-DCMAKE_POLICY_WARNING_CMP<NNNN>=ON``).
  23. Alternatively, running :manual:`cmake(1)` with the ``--debug-output``,
  24. ``--trace``, or ``--trace-expand`` option will also enable the warning.