summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2022-05-07 10:53:30 +0300
committerDmitry Shachnev <mitya57@gmail.com>2022-05-09 16:01:53 +0000
commitde088411d1b2f5c7bfbb63b23cf0f0e363c1ab99 (patch)
tree35c45ca14ca16bdd5125bcf09206657b3bdff2ad
parentb6a46aa0199c2595766495673f67a8190f3342fe (diff)
downloadqbs-de088411d1b2f5c7bfbb63b23cf0f0e363c1ab99.tar.gz
cmake: Fix syntax of regex
Because of this bug, 1.22.0 was correctly replaced with 1.22, but 1.22.1 was wrongly left as is. Change-Id: Iadadb543fa57c4f897bbff3109cfc3216e92b8ae Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--cmake/QbsBuildConfig.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QbsBuildConfig.cmake b/cmake/QbsBuildConfig.cmake
index 166afe6d5..a29f550f2 100644
--- a/cmake/QbsBuildConfig.cmake
+++ b/cmake/QbsBuildConfig.cmake
@@ -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(