kopia lustrzana https://github.com/f4exb/sdrangel
Make git commit parse work even when tag is at the commit
rodzic
7f97826c58
commit
9d452a179e
|
@ -70,8 +70,8 @@ if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git/")
|
||||||
ERROR_QUIET
|
ERROR_QUIET
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
if(NOT res)
|
if(NOT res)
|
||||||
string(REGEX REPLACE "^v([0-9]+)\.([0-9]+)\.([0-9]+)-" "" git_commit ${out})
|
string(REGEX REPLACE "^v([0-9]+)\.([0-9]+)\.([0-9]+)" "" git_commit ${out})
|
||||||
set(sdrangel_VERSION_SUFFIX "-${git_commit}")
|
set(sdrangel_VERSION_SUFFIX "${git_commit}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue