From 25f724f7a6c0000330a40c3851dcd8bc2493e1fa Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 23 Nov 2022 15:30:18 +0300 Subject: [PATCH] [bos #32974] [CEA] regex in SALOME_SETUP_VERSION returns wrong module version --- cmake/SalomeMacros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2