cmake-W-options.rst 933 B

12345678910111213141516171819202122
  1. cmake-W-options
  2. ---------------
  3. * The :variable:`CMAKE_WARN_DEPRECATED` variable can now be set using the
  4. ``-Wdeprecated`` and ``-Wno-deprecated`` :manual:`cmake(1)` options.
  5. * The ``-Wdev`` and ``-Wno-dev`` :manual:`cmake(1)` options now also enable
  6. and suppress the deprecated warnings output by default.
  7. * Warnings about deprecated functionality are now enabled by default.
  8. They may be suppressed with ``-Wno-deprecated`` or by setting the
  9. :variable:`CMAKE_WARN_DEPRECATED` variable to false.
  10. * Warnings about deprecated functionality can now be controlled in the
  11. :manual:`cmake-gui(1)` application.
  12. * The suppression of developer warnings as errors can now be controlled with
  13. the new ``-Werror=dev`` and ``-Wno-error=dev`` :manual:`cmake(1)` options.
  14. * The :variable:`CMAKE_ERROR_DEPRECATED` variable can now be set using the
  15. ``-Werror=deprecated`` and ``-Wno-error=deprecated`` :manual:`cmake(1)`
  16. options.