summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2019-07-11 12:01:22 +0200
committerKai Koehne <kai.koehne@qt.io>2019-07-11 11:37:01 +0000
commita9790627873d17f91f29c9bd8be0fb609ec29f03 (patch)
tree49b7af7481d9b6769c8f95e978695ba4771db65a
parent86f264b491fced5efd37127ac1a31880fe909f5c (diff)
downloadqttools-a9790627873d17f91f29c9bd8be0fb609ec29f03.tar.gz
CMake: Ensure unique lst file name in qt5_create_translation
get_filename_component(... NAME_WE) will remove all suffixes, so files like myapp.de.ts and myapp.en.ts will return the same base name. To just remove the .ts, we could switch to NAME_WLE, but that was only introduced in CMake 3.14 it seems. But why bother at all? The lst file name doesn't have to be pretty... Fixes: QTBUG-76723 Change-Id: I42e46310fe5e9cfb0a82f303ade700f3f0b1b600 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--src/linguist/Qt5LinguistToolsMacros.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linguist/Qt5LinguistToolsMacros.cmake b/src/linguist/Qt5LinguistToolsMacros.cmake
index 5c357a152..23beeb397 100644
--- a/src/linguist/Qt5LinguistToolsMacros.cmake
+++ b/src/linguist/Qt5LinguistToolsMacros.cmake
@@ -56,7 +56,7 @@ function(QT5_CREATE_TRANSLATION _qm_files)
if(_my_sources)
# make a list file to call lupdate on, so we don't make our commands too
# long for some systems
- get_filename_component(_ts_name ${_ts_file} NAME_WE)
+ get_filename_component(_ts_name ${_ts_file} NAME)
set(_ts_lst_file "${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${_ts_name}_lst_file")
set(_lst_file_srcs)
foreach(_lst_file_src ${_my_sources})