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

[REG] Qt 6.6.1 breaks qt_add_translations

    XMLWordPrintable

Details

    • Windows
    • 66aebd35a (dev), aef0c3cf3 (6.7), 96289e100 (6.6), c4142f3ff (tqtc/lts-6.5)

    Description

      Commit 6fbd6e1f776b1a23b392cc639e01ac26898444f6 breaks qt_add_translations in out code base.

      https://github.com/qt/qttools/commit/6fbd6e1f776b1a23b392cc639e01ac26898444f6

      I use the CMake generators Visual Studio 16 2019 and Visual Studio 17 2022 with CMake 3.27.8.

      Durring CMake configuration I get a lot errors like:

      --     Add translation files: main_de.ts
      CMake Error at C:/tt/develop/usr/lib/cmake/Qt6LinguistTools/Qt6LinguistToolsMacros.cmake:207 (add_custom_command):
        TARGET 'update_translations' was not created in this directory.
      Call Stack (most recent call first):
        C:/tt/develop/usr/lib/cmake/Qt6LinguistTools/Qt6LinguistToolsMacros.cmake:370 (qt6_add_lupdate)
        C:/tt/develop/usr/lib/cmake/Qt6LinguistTools/Qt6LinguistToolsMacros.cmake:431 (qt6_add_translations)
        CMakeLists.txt:427 (qt_add_translations)
        Common/core/prj/main/CMakeLists.txt:1 (tt_add_library)
      

      I call qt_add_translations from a CMake function that is globally defined. Maybe that leads to a non-directory local update_translations target, but I'm not sure about this.

      Side note: Ninja works fine. (As expected.)

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-119555
          # Subject Branch Project Status CR V

          Activity

            People

              jbornema Joerg Bornemann
              bebuch Benjamin Buch
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: