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

qt_add_qml_module should use source paths as is

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 6.8
    • Build System: CMake
    • None

      qt_add_qml_module() macro creates a plugin class to load our source modules,
      however if we add:
      SOURCES include/moduleA/utils/something/header.h

      then the generated file will have:
      include <header.h>

      Which fails to compile because compiler cannot find it.

      This can be worked around by target_include_directory(... include/moduleA/utils/something)

      But not only this leads to more complex CMake files but also might clash where you might have multiple header.h files in different folders and namespaces.
      It really should just include what we give to it.

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

            qtbuildsystem Qt Build System Team
            dantti Daniel Nicoletti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes