From 9e058957e912274a77edcd290c3e9855eacd454c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Tue, 19 Apr 2022 23:31:34 +0200 Subject: [PATCH] Minor fixes. --- mo2_cpp.cmake | 4 +++- mo2_python.cmake | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mo2_cpp.cmake b/mo2_cpp.cmake index 1b80c83..d025337 100644 --- a/mo2_cpp.cmake +++ b/mo2_cpp.cmake @@ -98,7 +98,8 @@ function(mo2_configure_target MO2_TARGET) if(${MO2_TRANSLATIONS}) - find_package(Qt6LinguistTools) + find_package(Qt6 COMPONENTS Core REQUIRED) + find_package(Qt6 COMPONENTS LinguistTools REQUIRED) if (MO2_EXTRA_TRANSLATIONS) file(GLOB_RECURSE MO2_EXTRA_TRANSLATIONS CONFIGURE_DEPENDS @@ -114,6 +115,7 @@ function(mo2_configure_target MO2_TARGET) QM_FILES_OUTPUT_VARIABLE qm_files SOURCES ${translation_files} LUPDATE_OPTIONS -silent + LRELEASE_OPTIONS -silent ) # we need to set this property otherwise there is an issue with C# projects diff --git a/mo2_python.cmake b/mo2_python.cmake index ee3b4b6..a0b02f5 100644 --- a/mo2_python.cmake +++ b/mo2_python.cmake @@ -25,7 +25,7 @@ function(mo2_python_translations MO2_TARGET) add_custom_command(OUTPUT ${ts_file} COMMAND ${PYTHON_ROOT}/PCbuild/amd64/python.exe - ARGS -I -m PyQt${QT_MAJOR_VERSION}.lupdate.pylupdate ${_lupdate_options} --ts "${ts_file}" ${src_files} --verbose + ARGS -I -m PyQt${QT_MAJOR_VERSION}.lupdate.pylupdate ${_lupdate_options} --ts "${ts_file}" ${src_files} DEPENDS ${src_files} WORKING_DIRECTORY ${PYTHON_ROOT} VERBATIM)