Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7.0 Beta3
-
None
-
-
c12750987 (dev), 66bed97bf (6.7), eb725df39 (6.7.0)
Description
When I add a translation in my project with code below:
qt6_add_lupdate( TS_FILES ts/xxxx.ts SOURCES ${ts_src} OPTIONS -no-obsolete)
generated xxx_lupdate_project.json:
{ ... "subProjects": [ { "projectFile": "/CMakeLists.txt", "includePaths": [ ], "sources": [ ], "excluded": [ ] } { "projectFile": "/CMakeLists.txt", "includePaths": [ ], "sources": [ ], "excluded": [ ] } ] }
No subProjects should be generated here.
I found code in .../Qt6LinguistTools/GenerateLUpdateProject.cmake, line 116:
foreach(i RANGE 1 ${lupdate_subproject_count})
It also loops for twice when lupdate_subproject_count is 0.