[Interest] Output-variable signature of qt_wrap_cpp deprecated
Jonas Kvinge
jonaski at opensuse.org
Sun Aug 18 21:53:33 CEST 2024
Hi,
I recently see the following warning:
CMake Warning at
/usr/local/qt6/lib64/cmake/Qt6Core/Qt6CoreMacros.cmake:184 (message):
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
Call Stack (most recent call first):
/usr/local/qt6/lib64/cmake/Qt6Core/Qt6CoreMacros.cmake:306
(qt6_wrap_cpp)
src/CMakeLists.txt:996 (qt_wrap_cpp)
When switching to the new syntax which takes the target as the first
argument, I don't see any way to get a list of the produced moc files
as a variable like before, is this not possible?
I currently use these to automatically produce a .pot file for gettext
translations. I assume the old syntax will be removed in the future, in
case it's not possible to get a variable of the produced files like
before, this will be an issue.
Jonas
More information about the Interest
mailing list