]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
[bos #32974] [CEA] regex in SALOME_SETUP_VERSION returns wrong module version V9_10_BR V9_10_0 V9_10_0rc1
authorjfa <jfa@opencascade.com>
Wed, 23 Nov 2022 12:30:18 +0000 (15:30 +0300)
committerjfa <jfa@opencascade.com>
Wed, 23 Nov 2022 12:30:18 +0000 (15:30 +0300)
cmake/SalomeMacros.cmake

index 131820414a5e460aad31cb6760c17d8964a547e1..bb38859ee9f76811f3d78a12be5d662c03c7d3ce 100644 (file)
@@ -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)