fix syntax of regex
authorDmitry Shachnev <mitya57@debian.org>
Sun, 15 May 2022 11:05:37 +0000 (12:05 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Sun, 15 May 2022 11:05:37 +0000 (12:05 +0100)
Forwarded: https://codereview.qt-project.org/c/qbs/qbs/+/410156
Last-Update: 2022-05-07

Gbp-Pq: Name cmake_regex_syntax.diff

cmake/QbsBuildConfig.cmake

index 166afe6d528a0d038efb5173921e89df9a5b5af6..a29f550f255e74f70880c744905c8a4fb8aecc2a 100644 (file)
@@ -142,7 +142,7 @@ function(add_qbs_library target_name)
         set(library_type STATIC)
     endif()
 
-    string(REGEX REPLACE "\\.[0..9]+$" "" _SOVERSION ${QBS_VERSION})
+    string(REGEX REPLACE "\\.[0-9]+$" "" _SOVERSION ${QBS_VERSION})
 
     add_library(${target_name} ${library_type} ${_arg_SOURCES})
     target_compile_definitions(