Commit c17fc36d authored by Joerg Bornemann's avatar Joerg Bornemann
Browse files

Fix permanently out-of-date .qm files


An incremental build without changed .ts files must be a null build.
However, the .qm files were always re-generated.  That was, because
add_custom_target was used to run lrelease, and such targets are always
out of date.

Use the new target-based translation API that uses add_custom_command
under the hood.  This fixes the described issue and simplifies the
project file a lot.

For the target that runs lupdate: the .ts file must not be a by-product
of the custom target.  Otherwise, the updateqm target would trigger the
ts-${catalog}-${lang} targets.  There should be no connection between
the lrelease and lupdate targets.

Pick-to: 6.2
Fixes: QTBUG-96038
Change-Id: I1faf35f1eab154be3a12dfaed93d64799dbb6ff1
Reviewed-by: default avatarAlexey Edelev <alexey.edelev@qt.io>
Reviewed-by: default avatarAlexandru Croitor <alexandru.croitor@qt.io>
parent dbcf76dc
No related merge requests found
Showing with 8 additions and 25 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment