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

CMake Build: Do not rely on only pkg-config for FindXYZ CMake modules

    XMLWordPrintable

Details

    Description

      Currently we have some PkgConfig::XYZ CMake targets which will always require pkg-config.

      I found the following:

      cmake/FindWrapSystemHarfbuzz.cmake
      cmake/FindWrapBrotli.cmake
      cmake/FindGTK3.cmake
      cmake/FindXRender.cmake
      cmake/FindXKB_COMMON_X11.cmake
      cmake/FindLibsystemd.cmake
      cmake/FindLibproxy.cmake
      cmake/FindDirectFB.cmake
      cmake/FindLibudev.cmake
      cmake/FindATSPI2.cmake
      cmake/FindLibb2.cmake
      cmake/FindMtdev.cmake
      cmake/FindTslib.cmake 

      The following find CMake modules have both pkg-config and CMake find_path and find_library calls in one module:

      cmake/3rdparty/extra-cmake-modules/modules/ECMFindModuleHelpers.cmake
      cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake
      cmake/3rdparty/kwin/FindLibdrm.cmake
      cmake/3rdparty/kwin/FindLibinput.cmake
      cmake/3rdparty/kwin/Findgbm.cmake
      cmake/3rdparty/extra-cmake-modules/find-modules/FindX11_XCB.cmake
      cmake/3rdparty/extra-cmake-modules/find-modules/FindGLIB2.cmake
      cmake/3rdparty/kwin/FindXKB.cmake
      cmake/FindWrapSystemHarfbuzz.cmake
      cmake/FindWrapSystemPCRE2.cmake
      cmake/FindZSTD.cmake
      cmake/FindMySQL.cmake
      cmake/FindGSSAPI.cmake

      The FindXYZ CMake modules should have both capabilities to be able to work in scenarions when pkgconf package is not installed.

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              cadam Cristian Adam
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes