diff --git a/CMLibQtTranslation.cmake b/CMLibQtTranslation.cmake index 23260a9..a69c799 100644 --- a/CMLibQtTranslation.cmake +++ b/CMLibQtTranslation.cmake @@ -11,7 +11,7 @@ function(qt5_translation outfiles) set(_output_dir ${_QTTR_OUTPUT_DIR}) set(_languages ${_QTTR_LANGUAGES}) - set(_l10n_qrc_body "") + set(L10N_QRC_BODY "") make_directory(${_output_dir}) foreach(lang ${_languages}) @@ -19,7 +19,7 @@ function(qt5_translation outfiles) set(_qm "${_base_name}_${lang}.qm") list(APPEND _ts_list ${_output_dir}/${_ts}) list(APPEND _l10n_names_list "${_base_name}_l10n_${lang}") - string(APPEND _l10n_qrc_body "${CMAKE_BINARY_DIR}/${_qm}\n") + string(APPEND L10N_QRC_BODY "${CMAKE_BINARY_DIR}/${_qm}\n") add_custom_target( ${_base_name}_l10n_${lang} COMMAND ${Qt5_LUPDATE_EXECUTABLE} ${_sources} -ts ${_output_dir}/${_ts} diff --git a/qrc/l10n.qrc.in b/qrc/l10n.qrc.in index da14158..3513d13 100644 --- a/qrc/l10n.qrc.in +++ b/qrc/l10n.qrc.in @@ -1,5 +1,5 @@ - @l10n_qrc_body@ + @L10N_QRC_BODY@