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

qtimageformats global promotion issues in static builds.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.2.0 Beta1
    • None
    • All

      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)
      

       

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

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

              Created:
              Updated: