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

Details

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

    Description

      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
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes