mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-14 10:08:32 +05:00
cmake - strip version string
This commit is contained in:
parent
dc2eb66d43
commit
0d4028ea7a
@ -28,6 +28,7 @@ if(status AND NOT status EQUAL 0)
|
|||||||
set(git_version_string "v6.2.0.0")
|
set(git_version_string "v6.2.0.0")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
string(STRIP ${git_version_string} git_version_string)
|
||||||
|
|
||||||
string(REGEX REPLACE "^v([0-9]+)\\..*" "\\1" NETGEN_VERSION_MAJOR "${git_version_string}")
|
string(REGEX REPLACE "^v([0-9]+)\\..*" "\\1" NETGEN_VERSION_MAJOR "${git_version_string}")
|
||||||
string(REGEX REPLACE "^v[0-9]+\\.([0-9]+).*" "\\1" NETGEN_VERSION_MINOR "${git_version_string}")
|
string(REGEX REPLACE "^v[0-9]+\\.([0-9]+).*" "\\1" NETGEN_VERSION_MINOR "${git_version_string}")
|
||||||
|
Loading…
Reference in New Issue
Block a user