From bfbaf981033eba4be59b44c1ea53b63586d849ff Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 12 Aug 2016 13:34:54 +0300 Subject: [PATCH] Fix error in previous commit - wrong result QM files extensions. --- cmake/UseQtExt.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/UseQtExt.cmake b/cmake/UseQtExt.cmake index c400c09..1041d32 100644 --- a/cmake/UseQtExt.cmake +++ b/cmake/UseQtExt.cmake @@ -28,7 +28,7 @@ ENDIF() # installdir contains directory (relative to install_prefix) where to install files after compilation of ts files too qm. MACRO(QT_INSTALL_TS_RESOURCES tsfiles installdir) FOREACH(_input ${tsfiles}) - GET_FILENAME_COMPONENT(_name ${_input} NAME) + GET_FILENAME_COMPONENT(_name ${_input} NAME_WE) SET(_output ${CMAKE_CURRENT_BINARY_DIR}/${_name}.qm) SET(_cmd_${_name} ${QT_LRELEASE_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${_input} -qm ${_output}) ADD_CUSTOM_TARGET(QT_INSTALL_TS_RESOURCES_${_name} ALL COMMAND ${_cmd_${_name}} DEPENDS ${_input}) -- 2.39.2