Skip to content

Commit 935aa24

Browse files
authored
Revert "Fixed #14169 (cmake: ts files generated by cmake is not robust) (#8047)" (#8057)
This reverts commit 11fa27d. It caused problems to build release-windows action
1 parent 8a85784 commit 935aa24

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gui/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ CheckOptions:
1212
file(GLOB hdrs "*.h")
1313
file(GLOB srcs "*.cpp")
1414
file(GLOB uis "*.ui")
15+
file(GLOB tss "*.ts")
1516
QT_WRAP_UI(uis_hdrs ${uis})
1617
QT_ADD_RESOURCES(resources "gui.qrc")
18+
# TODO: passing "-no-obsolete" here breaks the translations
19+
QT_CREATE_TRANSLATION(qms ${CMAKE_CURRENT_SOURCE_DIR} ${tss})
1720
list(APPEND cppcheck-gui-deps ${hdrs} ${uis_hdrs} ${resources} ${qms})
1821
add_custom_target(gui-build-deps SOURCES ${cppcheck-gui-deps})
1922

0 commit comments

Comments
 (0)