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

qt_add_qml_module should warn user about the use of unacceptable output qml directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.2, 6.5, 6.8
    • Build System: CMake
    • None

      When configuring user project that use QML, the configuration doesn't warn users regarding name conflicts. qt_add_qml_module function should check if the target name conflicts with the QML OUTPUT_DIRECTORY name and suggest to either change the OUTPUT_DIRECTORY value, or/and make decision implicitly by adding qml prefix/suffix to output directory. Otherwise if URL matches the target name in qt_add_qml_module call this will lead to build errors like:

      /usr/lib/gcc/x86_64-pc-linux-gnu/11/../../../../x86_64-pc-linux-gnu/bin/ld: cannot open output file <target>: Is a directory
      

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

            dheerendra Dheerendra Purohit
            semlanik Alexey Edelev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes