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

qtimageformats global promotion issues in static builds.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0 Beta1
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      All

      Description

      I think I opened another older issue with a similar problem but since the global promotion code changed I just open another issues. 

      Error:

       

      CMake Error at D:/installed/x64-windows-static/share/Qt6/QtPublicTargetHelpers.cmake:219 (set_property):
       Attempt to promote imported target "Threads::Threads" to global scope (by
       setting IMPORTED_GLOBAL) which is not built in this directory.
      Call Stack (most recent call first):
       D:/installed/x64-windows-static/share/Qt6/QtPublicWalkLibsHelpers.cmake:231 (__qt_internal_promote_target_to_global)
       D:/installed/x64-windows-static/share/Qt6/QtPublicWalkLibsHelpers.cmake:205 (__qt_internal_walk_libs)
       D:/installed/x64-windows-static/share/Qt6/QtPublicWalkLibsHelpers.cmake:180 (__qt_internal_walk_libs)
       D:/installed/x64-windows-static/share/Qt6/QtFindPackageHelpers.cmake:12 (__qt_internal_walk_libs)
       D:/installed/x64-windows-static/share/Qt6/QtFindPackageHelpers.cmake:173 (qt_find_package_promote_targets_to_global_scope)
       src/imageformats/configure.cmake:18 (qt_find_package)
       src/plugins/imageformats/CMakeLists.txt:9 (include)
      
      CMake Error at D:/installed/x64-windows-static/share/Qt6/QtPublicTargetHelpers.cmake:219 (set_property):
       Attempt to promote imported target "JPEG::JPEG" to global scope (by setting
       IMPORTED_GLOBAL) which is not built in this directory.
      Call Stack (most recent call first):
       D:/installed/x64-windows-static/share/Qt6/QtPublicWalkLibsHelpers.cmake:231 (__qt_internal_promote_target_to_global)
       D:/installed/x64-windows-static/share/Qt6/QtFindPackageHelpers.cmake:12 (__qt_internal_walk_libs)
       D:/installed/x64-windows-static/share/Qt6/QtFindPackageHelpers.cmake:173 (qt_find_package_promote_targets_to_global_scope)
       src/imageformats/configure.cmake:18 (qt_find_package)
       src/plugins/imageformats/CMakeLists.txt:9 (include)
      
      CMake Error at D:/installed/x64-windows-static/share/Qt6/QtPublicTargetHelpers.cmake:219 (set_property):
       Attempt to promote imported target "ZLIB::ZLIB" to global scope (by setting
       IMPORTED_GLOBAL) which is not built in this directory.
      Call Stack (most recent call first):
       D:/installed/x64-windows-static/share/Qt6/QtPublicWalkLibsHelpers.cmake:231 (__qt_internal_promote_target_to_global)
       D:/installed/x64-windows-static/share/Qt6/QtFindPackageHelpers.cmake:12 (__qt_internal_walk_libs)
       D:/installed/x64-windows-static/share/Qt6/QtFindPackageHelpers.cmake:173 (qt_find_package_promote_targets_to_global_scope)
       src/imageformats/configure.cmake:18 (qt_find_package)
       src/plugins/imageformats/CMakeLists.txt:9 (include)
      

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              neumann-a Alexander Neumann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes