Introduce macro.qtpolicydeprecatedbehavior for Qt CMake Policy

Added a template that we can use instead of rewriting the message for
every policy.

Pick-to: 6.6
Change-Id: I13cc182244d5f092e3d5677664bc149c6b126da5
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Amir Masoud Abdol 2023-07-07 13:59:41 +02:00
parent 1ca71cbff0
commit 8b4dbce54e
3 changed files with 4 additions and 4 deletions

View File

@ -133,3 +133,5 @@ macro.cmakepropertywebassemblyonly = "\\note This property is used only if targe
macro.cmakepropertyiosonly = "\\note This property is used only if targeting iOS."
macro.cmakevariableiosonly = "\\note This variable is used only if targeting iOS."
macro.qtpolicydeprecatedbehavior = "\\note The \\c{OLD} behavior of a policy is deprecated, and may be removed in the future."

View File

@ -56,8 +56,7 @@ set_target_properties(
)
\endcode
\note The \c{OLD} behavior of a policy is deprecated, and may
be removed in the future.
\qtpolicydeprecatedbehavior
\sa qt_policy, {Qt CMake policies}

View File

@ -58,8 +58,7 @@ You can set \c behavior to one of the following options:
\li \c{OLD} to explicitly opt-out of it
\endlist
\note The \c{OLD} behavior of a policy is deprecated, and may
be removed in the future.
\qtpolicydeprecatedbehavior
\sa qt_standard_project_setup