Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-128145

Fix warnings that were introduced by qt6_wrap_cpp API changes

    XMLWordPrintable

Details

    • All
    • f60237ac9 (dev), d92264a08 (6.8)

    Description

      Since https://codereview.qt-project.org/c/qt/qtbase/+/579078 we have warnings when using the qtremoteobjects CMake API:

      CMake Warning at /home/qt/work/install/lib/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): 
        /home/qt/work/install/lib/cmake/Qt6RemoteObjects/Qt6RemoteObjectsMacros.cmake:81 (qt6_wrap_cpp) 
        /home/qt/work/install/lib/cmake/Qt6RemoteObjects/Qt6RemoteObjectsMacros.cmake:99 (_qt_internal_add_repc_files)  

      We should fix the warnings - or at the very least suppress - those warnings from our own code.

      Also, check whether qt6_wrap_cpp calls must be migrated in other places too.

      Alternatively, remove this warning.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              orkun.tokdemir Orkun Tokdemir
              jbornema Joerg Bornemann
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes