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

Repeated cmake find_package warnings during configure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 6.0.0 Beta5
    • Fix Version/s: 6.0.0 RC
    • Component/s: Build System: CMake
    • Labels:
    • Environment:
      $ 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
    • Platform/s:
      Linux/X11
    • Commits:
      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

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

          Activity

            People

            Assignee:
            cadam Cristian Adam
            Reporter:
            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