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

find_package(Qt6LinguistTools) fails due to undefined __qt_internal_promote_target_to_global

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.2.0 Beta2
    • Build System: CMake
    • None
    • Windows

    Description

      Trying to directly load package Qt6LinguistTools fails:

       

      cmake_minimum_required(VERSION 3.14)
      
      project(qtbug-95791 LANGUAGES CXX)
      
      find_package(Qt6LinguistTools) 
      

      Running CMake fails with

      CMake Error at C:/Qt/6.2.0/msvc2019_64/lib/cmake/Qt6LinguistTools/Qt6LinguistToolsConfig.cmake:50 (__qt_internal_promote_target_to_global):
        Unknown CMake command "__qt_internal_promote_target_to_global".
      Call Stack (most recent call first):
        CMakeLists.txt:5 (find_package)
      

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes