CMake: Remove QT_NO_SHOW_OLD_QT_WRAP_CPP_WARNING
Fixes: QTBUG-128145 Change-Id: Iffa1e6ba05d6cca1323e01861d8028c06b34a656 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit f60237ac93859be11415aa28c097137da23aea60) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
b48b0dba63
commit
d92264a089
@ -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)
|
||||
|
@ -25,8 +25,7 @@ qt_wrap_cpp(<TARGET> 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(<VAR> src_file1 [src_file2 ...]
|
||||
|
Loading…
x
Reference in New Issue
Block a user