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

qmltc does not like Selectors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.4
    • QML: Compiler
    • None
    • All

    Description

      Adding ENABLE_TYPE_COMPILER to qt_add_qml_module fails, if a qml files has two versions (one basic, one with a +selector)
      See QTBUG-104571 for the setup details

      CMake Error at C:/Qt/6.4.0/msvc2019_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:1258 (add_custom_command):
        Attempt to add a custom rule to output    C:/Users/sandman/git/build-brickstore-Desktop_Qt_6_4_0_MSVC2019_64bit-RelWithDebInfo/src/mobile/.qmltc/mobile_module/stylehelper.h.rule  which already has a custom rule.
      Call Stack (most recent call first):
        C:/Qt/6.4.0/msvc2019_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:647 (_qt_internal_target_enable_qmltc)
        C:/Qt/6.4.0/msvc2019_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:662 (qt6_add_qml_module)
        src/mobile/CMakeLists.txt:27 (qt_add_qml_module)
      CMake Error: Files to be generated by multiple different commands: "C:/Users/sandman/git/build-brickstore-Desktop_Qt_6_4_0_MSVC2019_64bit-RelWithDebInfo/src/mobile/.qmltc/mobile_module/moc_stylehelper.cpp_parameters_RelWithDebInfo" 

       

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              rgriebl Robert Griebl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes