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

Support for multiple targets in qt_add_{lupdate,lrelease,translations}

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.5.2
    • Build System: CMake
    • None
    • All

      It's common for applications to be spread over multiple targets, e.g. static and/or dynamic libraries + the application executable.

      However, the new target-based qt_add_{lupdate,lrelease,translations} CMake helpers which are recommended in favour of the now deprecated qt_add_translation and qt_create_translation, only supports specifying a single target. This forces you to give up on the convenience of automatic source file deduction and having to specify all sources manually.

      It would be good if there was a better way to handle this use case. Possibly the helpers could take multiple targets as arguments?

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

            qtbuildsystem Qt Build System Team
            estan Elvis Stansvik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes