aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktestutils/quick/visualtestutils.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2024-08-15 16:10:00 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2024-08-15 23:24:06 +0200
commit506cac0194124153ab63ae6111d4c3e51e106a5d (patch)
tree5dac3999578c5da4836fea5eac791a8906a1e8a7 /src/quicktestutils/quick/visualtestutils.cpp
parente953ea4bc616c05b6f07dd3bf3ccaa3b012a3125 (diff)
CMake: Exclude QML *_tooling targets from i18n
For QML modules, we create *_tooling targets with source files assigned, which are located in the build directory. These sources are copies of files from the source directory and already belong to the actual QML module's target. When using qt_add_translations' automatic target collection, both targets contribute to the inputs of lupdate, resulting in duplicate source locations in .ts files. We now mark *_tooling targets as excluded from translation to avoid these duplicates. Implementation note: we don't need to set QT_EXCLUDE_FROM_TRANSLATION on the utility target for CMake < 3.19, because utility targets do not contribute to the input of lupdate. Pick-to: 6.7 6.8 Fixes: QTBUG-124764 Change-Id: If5a8a19ff5503a6ea7d62a1f05957c7f1e8f315e Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'src/quicktestutils/quick/visualtestutils.cpp')
0 files changed, 0 insertions, 0 deletions