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

fail to configure qt 6.1.1 on macos (with conan) due to ZLIB global promotion not happening

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.1.1
    • Build System: CMake
    • None
    • macos
    • macOS

    Description

      When tryingto build qt 6.1.1 (using conan center recipe), configuration fails with:

      CMake Error at qtbase/cmake/QtPrlHelpers.cmake:225 (set_property):
      Attempt to promote imported target "CONAN_LIB::ZLIB_z" to global scope (by
      setting IMPORTED_GLOBAL) which is not built in this directory.
      Call Stack (most recent call first):
      qtbase/cmake/QtPrlHelpers.cmake:178 (qt_internal_walk_libs)
      qtbase/cmake/QtPrlHelpers.cmake:198 (qt_internal_walk_libs)
      qtbase/cmake/QtPrlHelpers.cmake:178 (qt_internal_walk_libs)
      qtbase/cmake/QtPrlHelpers.cmake:198 (qt_internal_walk_libs)
      qtbase/cmake/QtPrlHelpers.cmake:178 (qt_internal_walk_libs)
      qtbase/cmake/QtFindPackageHelpers.cmake:12 (qt_internal_walk_libs)
      qtbase/cmake/QtFindPackageHelpers.cmake:158 (qt_find_package_promote_targets_to_global_scope)
      qtbase/src/gui/configure.cmake:33 (qt_find_package)
      qtbase/cmake/QtFeature.cmake:520 (include)
      qtbase/src/CMakeLists.txt:12 (qt_feature_evaluate_features)
      

      Building qt 6.1.0 with the same arguments in the same environment passes successfully. This could be caused by https://codereview.qt-project.org/c/qt/qtbase/+/344053

      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
              ericlemanissier Eric Lemanissier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes