From 7c62d755b964659f368b2448445b5ac855bdf22d Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Mon, 30 Mar 2020 14:58:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D1=8F=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B2=D0=BE=D0=B4=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibQtTranslation.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMLibQtTranslation.cmake b/CMLibQtTranslation.cmake index 877b9be..1cfd9f3 100644 --- a/CMLibQtTranslation.cmake +++ b/CMLibQtTranslation.cmake @@ -1,4 +1,4 @@ -function(qt_translation) +function(qt5_translation) find_package( Qt5 COMPONENTS LinguistTools @@ -6,13 +6,13 @@ function(qt_translation) set(options) set(oneValueArgs TARGET TS_DIR) - set(multiValueArgs LANGUAGES) + set(multiValueArgs SOURCES LANGUAGES) cmake_parse_arguments(_QTTR "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) set(_target ${_QTTR_TARGET}) + set(_sources ${_QTTR_SOURCES}) set(_ts_dir ${_QTTR_TS_DIR}) set(_languages ${_QTTR_LANGUAGES}) - get_target_property(_sources ${_target} SOURCES) set(L10N_QRC_BODY "") make_directory(${_ts_dir})