From: vsr Date: Fri, 12 Aug 2016 10:34:54 +0000 (+0300) Subject: Fix error in previous commit - wrong result QM files extensions. X-Git-Tag: V8_1_0b1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bfbaf981033eba4be59b44c1ea53b63586d849ff;p=tools%2Fconfiguration.git Fix error in previous commit - wrong result QM files extensions. --- 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})