Skip to content

Commit 05cc0b6

Browse files
committed
translations: Fix update with Qt >= 5.10
1 parent 7d220ef commit 05cc0b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

translations/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ execute_process(
129129
COMMAND "${Qt5_LUPDATE_EXECUTABLE}" -version
130130
OUTPUT_VARIABLE lupdate_version
131131
)
132-
string(REGEX REPLACE "^.*([0-9]\\.[0-9]\\.[0-9]).*" "\\1" lupdate_version "${lupdate_version}")
132+
string(REGEX REPLACE "^.*([0-9]\\.1?[0-9]\\.[0-9]).*" "\\1" lupdate_version "${lupdate_version}")
133133
if(lupdate_version VERSION_LESS 5.6.1)
134134
message(AUTHOR_WARNING "lupdate version ${lupdate_version} is less than 5.6.1. Updates disabled.")
135135
else()

0 commit comments

Comments
 (0)