Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
6.4.3
-
None
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.