Files
cmake/Help/diagnostic/CMD_DEPRECATED.rst
T
Brad King 880290c696 Help: Update Sphinx versionadded directives for 4.4 release
Run the script:

    Utilities/Sphinx/update_versions.py --since v4.3.0 --overwrite
2026-06-04 11:46:51 -04:00

20 lines
623 B
ReStructuredText

CMD_DEPRECATED
--------------
.. versionadded:: 4.4
.. diagnostic::
:default: warn
:parent: CMD_AUTHOR
Warn about use of a deprecated function or package. This is the category
triggered by :command:`message(DEPRECATION)`.
.. note::
If :policy:`CMP0218` is not set to ``NEW``, :command:`message(DEPRECATION)`
invocations, along with builtin deprecation messages that existed prior to
CMake 4.4, will ignore this diagnostic state and will instead use the
:variable:`CMAKE_WARN_DEPRECATED` and :variable:`CMAKE_ERROR_DEPRECATED`
variables to determine the severity of deprecation messages.