Salome HOME
projects
/
tools
/
configuration.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6feb374
)
[bos #32974] [CEA] regex in SALOME_SETUP_VERSION returns wrong module version
V9_10_BR
V9_10_0
V9_10_0rc1
author
jfa
<jfa@opencascade.com>
Wed, 23 Nov 2022 12:30:18 +0000
(15:30 +0300)
committer
jfa
<jfa@opencascade.com>
Wed, 23 Nov 2022 12:30:18 +0000
(15:30 +0300)
cmake/SalomeMacros.cmake
patch
|
blob
|
history
diff --git
a/cmake/SalomeMacros.cmake
b/cmake/SalomeMacros.cmake
index 131820414a5e460aad31cb6760c17d8964a547e1..bb38859ee9f76811f3d78a12be5d662c03c7d3ce 100644
(file)
--- 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)