Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit d11f305

Browse files
committed
Versions now can be more generic, cmake wont complain
1 parent 801710e commit d11f305

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ execute_process(
3636
# the format of GIT_FULL_VERSION is v1.2.3-gsha1 or v1.2.3
3737
execute_process(
3838
COMMAND echo ${GIT_FULL_VERSION}
39-
COMMAND cut -d- -f1
40-
COMMAND cut -dv -f2
39+
COMMAND grep -o "[0-9][0-9]*\\.[0-9][0-9]*\\.[0-9][0-9]*"
4140
OUTPUT_VARIABLE GIT_LAST_VERSION
4241
OUTPUT_STRIP_TRAILING_WHITESPACE
4342
)

0 commit comments

Comments
 (0)