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

CMake: find_package does not set QT_DEFAULT_MAJOR_VERSION

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.2.3
    • None

    Description

      When using Cmake, find_package(Qt6 COMPONENTS LinguistTools REQUIRED) does not set QT_DEFAULT_MAJOR_VERSION.

      As a result, versionless commands qt_add_lupdate / qt_add_lrelease do not work.

       

      I saw QT_DEFAULT_MAJOR_VERSION is only set by QtCore, but LinguistTools do not link to it.

      => I think LinguistTools should also set it

      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
              ft62 f t
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes