From: jfa Date: Wed, 23 Nov 2022 12:30:18 +0000 (+0300) Subject: [bos #32974] [CEA] regex in SALOME_SETUP_VERSION returns wrong module version X-Git-Tag: V9_10_0rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=57084c004eac1f91a5b17f0301d129217a9dec07;p=tools%2Fconfiguration.git [bos #32974] [CEA] regex in SALOME_SETUP_VERSION returns wrong module version --- diff --git a/cmake/SalomeMacros.cmake b/cmake/SalomeMacros.cmake index 1318204..bb38859 100644 --- a/cmake/SalomeMacros.cmake +++ b/cmake/SalomeMacros.cmake @@ -1171,7 +1171,7 @@ FUNCTION(SALOME_SETUP_VERSION version) # project name in upper case (if not set in master CMakeLists.txt) STRING(TOUPPER ${PROJECT_NAME} _pkg_uc) # parse version component - STRING(REGEX MATCHALL "[^.]" _components "${version}") + STRING (REGEX REPLACE "[.]" ";" _components "${version}") LIST(LENGTH _components _length) IF(${_length} GREATER 0) LIST(GET _components 0 _major)