Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-96549

make clean removes ts file when using qt5_create_translation()

    XMLWordPrintable

Details

    • All
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jbornema Joerg Bornemann
              chehrlic Christian Ehrlicher
              Votes:
              3 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews