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

cmake build target all_qmllint does not include all qml modules

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.4.3
    • Build System: CMake
    • None
    • All

    Description

      I'm using cmake with ninja to build projects. I happily discovered the all_qmllint build target that allows to lint all qml modules, or so I thought. However I've just discovered that all_qmllint only points to the random first qmllint target, not to the list of all. Is that known and intended?

      To clarify the details, here is what I see. I use the demo application from https://gitlab.com/basic53/DemoApp in git revision e2909729. The build.ninja file contains:

      #> grep '^build [a-zA-Z/]*_qmllint:' ./build.ninja 
      build MyApplication_qmllint: phony CMakeFiles/MyApplication_qmllint modules/FirstPlugin/all_qmltyperegistrations
      build modules/FirstPlugin/FirstPlugin_qmllint: phony modules/FirstPlugin/CMakeFiles/FirstPlugin_qmllint modules/FirstPlugin/all_qmltyperegistrations
      build modules/FirstPlugin/all_qmllint: phony MyApplication_qmllint modules/Controls/Controls_qmllint modules/FirstPlugin/FirstPlugin_qmllint modules/Style/Style_qmllint
      build modules/Controls/Controls_qmllint: phony modules/Controls/CMakeFiles/Controls_qmllint modules/FirstPlugin/all_qmltyperegistrations
      build modules/Style/Style_qmllint: phony modules/Style/CMakeFiles/Style_qmllint modules/FirstPlugin/all_qmltyperegistrations
      build Controls_qmllint: phony modules/Controls/Controls_qmllint
      build FirstPlugin_qmllint: phony modules/FirstPlugin/FirstPlugin_qmllint
      build Style_qmllint: phony modules/Style/Style_qmllint
      build all_qmllint: phony modules/FirstPlugin/all_qmllint
      

      The problem that I observe is that build all_qmllint points only to modules/FirstPlugin/all_qmllint, not to all qmllint targets.

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            emmenlau Mario Emmenlauer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes