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

Repeated cmake find_package warnings during configure

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.0.0 RC
    • 6.0.0 Beta5
    • Build System: CMake
    • $ lsb_release -d
      Description: openSUSE Leap 15.2
      $ uname -a
      Linux localhost.localdomain 5.3.18-lp152.47-default #1 SMP Thu Oct 15 16:05:25 UTC 2020 (41f7396) x86_64 x86_64 x86_64 GNU/Linux
    • Linux/X11
    • 112d4887a3b33b63826aad7b5d9dbe876c462146 (qt/qtwayland/dev)

    Description

      Found when building Qt from CI-approved commit 4913a6d9 in the dev branch of qt5.git.

      Inspecting the output of configure shows six copies of a warning:

      $ ~/qt5/configure -developer-build
      ...
      CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
        The package name passed to `find_package_handle_standard_args` (PkgConfig)
        does not match the name of the calling package (XComposite).  This can lead
        to problems in calling code that expects `find_package` result variables
        (e.g., `_FOUND`) to follow a certain pattern.
      Call Stack (most recent call first):
        /usr/share/cmake/Modules/FindPkgConfig.cmake:59 (find_package_handle_standard_args)
        qtwayland/cmake/FindXComposite.cmake:1 (include)
        qtbase/cmake/QtFindPackageHelpers.cmake:113 (find_package)
        qtwayland/src/client/configure.cmake:19 (qt_find_package)
        qtwayland/src/CMakeLists.txt:25 (include)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      

      Four copies of the message mention XComposite in the second set of brackets, while the other two mention Waylandkms.

      These warnings don't seem to prevent Qt from compiling.  If they are harmless, they should probably be suppressed to avoid alarm.

       

      Attachments

        For Gerrit Dashboard: QTBUG-88539
        # Subject Branch Project Status CR V

        Activity

          People

            cadam Cristian Adam
            macadder Jason McDonald
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes