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

cmake: Specifying PROJECT_VERSION in a Quick project fails generation

    XMLWordPrintable

Details

    • eff776c67 (dev), fd2299083 (6.9), 4d3180b4c (6.8)

    Description

      Hello,

      whenever you find Qt via find_package in cmake with quick, with PROJECT_VERSION set, it wants to find some internal component if Qt with it:

      CMake Error at /usr/lib/cmake/Qt6Qml/Qt6QmlFindQmlscInternal.cmake:33 (find_package):
        find_package called with invalid argument "1.7.25.r7.gb6aa6a4"
      Call Stack (most recent call first):
        /usr/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:153 (include)
        /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
        /usr/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:143 (find_dependency)
        /usr/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:43 (_qt_internal_find_qt_dependencies)
        /usr/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:53 (include)
        /usr/lib/cmake/Qt6/Qt6Config.cmake:191 (find_package)
        CMakeLists.txt:110 (find_package)
      

      This file was created in https://github.com/qt/qtdeclarative/commit/b0f1ec4e394dcee82400964225be485a7cdd3c53 so I suspect that it is because of it, but I didn't confirm. In my opinion, Qt's CMake functions shouldn't break when the user's CMake specifies the variable.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            syyyr Václav Kubernát
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes