Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.6.1
-
-
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
- relates to
-
QTBUG-119838 [REG] qt_add_qml_module broken for the VS generator when called in different subdirectories
- Closed