From 956f2e0ad05de322bde6ec178714931493a632db Mon Sep 17 00:00:00 2001 From: mariuszmaximus Date: Sun, 14 Apr 2024 19:38:52 +0200 Subject: [PATCH] fix for msys2 --- example/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index c1e8f99a..01403fce 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -28,8 +28,8 @@ find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Quick Svg Network) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Quick Svg Network) #添加国际化脚本 -find_program(QT_LUPDATE NAMES lupdate) -find_program(QT_LRELEASE NAMES lrelease) +find_program(QT_LUPDATE NAMES lupdate lupdate-qt6) +find_program(QT_LRELEASE NAMES lrelease lrelease-qt6) file(GLOB TS_FILE_PATHS ${CMAKE_CURRENT_LIST_DIR}/ *.ts) add_custom_target(Script-UpdateTranslations COMMAND ${QT_LUPDATE} ${CMAKE_CURRENT_LIST_DIR} -ts ${PROJECT_NAME}_en_US.ts WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}