Skip to content

Commit

Permalink
workaround for QTBUG-126167
Browse files Browse the repository at this point in the history
  • Loading branch information
ddanilov committed Jul 20, 2024
1 parent 50eef58 commit 984d909
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,20 @@ qt_add_library(${APP_LIB} STATIC
)
target_link_libraries(${APP_LIB} PUBLIC Qt::Multimedia Qt::Widgets)

qt_add_translations(${APP_LIB} TS_FILES
translations/soundscape_de.ts
translations/soundscape_it.ts
translations/soundscape_ru.ts
)
add_dependencies(${APP_LIB} ${APP_LIB}_lupdate)
if(Qt6_VERSION VERSION_LESS "6.7.0")
qt_add_translations(${APP_LIB} TS_FILES
translations/soundscape_de.ts
translations/soundscape_it.ts
translations/soundscape_ru.ts
)
else()
qt_add_translations(${APP_LIB} TS_FILES
translations/soundscape_de.ts
translations/soundscape_it.ts
translations/soundscape_ru.ts
IMMEDIATE_CALL
)
endif()

message(STATUS "system name: ${CMAKE_SYSTEM_NAME}")

Expand Down

0 comments on commit 984d909

Please sign in to comment.