Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.6, 6.2.0 Beta4
-
-
153db2fedc (qt/qttools/dev) 44326eb79e (qt/qttools/6.3) fcb679fda3 (qt/qttools/6.2) fcb679fda3 (qt/tqtc-qttools/6.2) 44326eb79e (qt/tqtc-qttools/6.3) 153db2fedc (qt/tqtc-qttools/dev) a100f74851 (qt/tqtc-qttools/5.15) fcb679fda3 (qt/qttools/6.2.4)
Description
Bug report results from a forum post: https://forum.qt.io/topic/130308/manage-translations-with-cmake
When using qt5_create_translation(), calling make clean (or e.g. execution 'Rebuild all' in QtCreator) will remove the ts files in the source directory.
The reason for this is that the custom command to execute lupdate specifies the ts file as OUTPUT (which is correct) and therefore cmake sets the 'GENERATED' property which means the file gets deleted on make clean. Sadly this property can not be unset and I did not find a workaround.
Attachments
Issue Links
- duplicates
-
QTBUG-31860 CMake + Qt5LinguistToolsMacros.cmake: QT5_CREATE_TRANSLATION delete source ts files during clean
- Closed
-
QTBUG-41736 CMake + Qt5LinguistToolsMacros.cmake: QT5_CREATE_TRANSLATION clean deletes .ts files instead of updating
- Closed
- relates to
-
QTBUG-76410 CMake: Introduce qt_update_translation function
- Closed
-
QTBUG-107853 qt6_add_translations() deletes CMake-generated *.ts files when project is cleaned
- Reported
- mentioned in
-
Page Loading...