diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake index 84e3df107d7..d922f9bd251 100644 --- a/src/corelib/Qt6CoreMacros.cmake +++ b/src/corelib/Qt6CoreMacros.cmake @@ -180,13 +180,6 @@ function(qt6_wrap_cpp) if(TARGET ${ARGV0}) _qt_internal_wrap_cpp(dummy TARGET ${ARGV}) else() - if(NOT QT_NO_SHOW_OLD_QT_WRAP_CPP_WARNING) - message(WARNING "You are using the output-variable signature of " - "qt6_wrap_cpp(), which is deprecated. Instead, use " - "the newer signature that takes the target as the " - "first argument. To silence this warning pass " - "-DQT_NO_SHOW_OLD_QT_WRAP_CPP_WARNING=ON") - endif() set(output_parameter ${ARGV0}) _qt_internal_wrap_cpp(${ARGV}) set(${output_parameter} "${${output_parameter}}" PARENT_SCOPE) diff --git a/src/corelib/doc/src/cmake/qt_wrap_cpp.qdoc b/src/corelib/doc/src/cmake/qt_wrap_cpp.qdoc index 102f102d4fd..cf963fcc23d 100644 --- a/src/corelib/doc/src/cmake/qt_wrap_cpp.qdoc +++ b/src/corelib/doc/src/cmake/qt_wrap_cpp.qdoc @@ -25,8 +25,7 @@ qt_wrap_cpp( src_file1 [src_file2 ...] [DEPENDS ...]) \endcode -\note The signature above is recommended over the older signature, which is -deprecated since Qt 6.8. +\note The signature above is recommended over the older signature. \badcode qt_wrap_cpp( src_file1 [src_file2 ...]