mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 12:28:31 +01:00
Oops - add the git revision information even when forced
This commit is contained in:
parent
d21cd0edd7
commit
50c0cd78a3
@ -121,6 +121,7 @@ endif(CLEMENTINE_VERSION_PRERELEASE)
|
|||||||
# Add git revision
|
# Add git revision
|
||||||
if(FORCE_GIT_REVISION)
|
if(FORCE_GIT_REVISION)
|
||||||
set(GIT_REV ${FORCE_GIT_REVISION})
|
set(GIT_REV ${FORCE_GIT_REVISION})
|
||||||
|
set(GIT_INFO_RESULT 0)
|
||||||
else(FORCE_GIT_REVISION)
|
else(FORCE_GIT_REVISION)
|
||||||
find_program(GIT_EXECUTABLE git)
|
find_program(GIT_EXECUTABLE git)
|
||||||
|
|
||||||
@ -130,6 +131,8 @@ else(FORCE_GIT_REVISION)
|
|||||||
OUTPUT_VARIABLE GIT_REV
|
OUTPUT_VARIABLE GIT_REV
|
||||||
ERROR_QUIET
|
ERROR_QUIET
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if(${GIT_INFO_RESULT} EQUAL 0)
|
if(${GIT_INFO_RESULT} EQUAL 0)
|
||||||
string(REGEX REPLACE "^(.+)-([0-9]+)-(g[a-f0-9]+)$" "\\1;\\2;\\3"
|
string(REGEX REPLACE "^(.+)-([0-9]+)-(g[a-f0-9]+)$" "\\1;\\2;\\3"
|
||||||
@ -147,8 +150,6 @@ else(FORCE_GIT_REVISION)
|
|||||||
set(HAS_GET_REVISION ON)
|
set(HAS_GET_REVISION ON)
|
||||||
endif(GIT_PARTS_LENGTH EQUAL 3)
|
endif(GIT_PARTS_LENGTH EQUAL 3)
|
||||||
endif(${GIT_INFO_RESULT} EQUAL 0)
|
endif(${GIT_INFO_RESULT} EQUAL 0)
|
||||||
endif(NOT GIT_EXECUTABLE-NOTFOUND)
|
|
||||||
endif(FORCE_GIT_REVISION)
|
|
||||||
|
|
||||||
if(INCLUDE_GIT_REVISION AND HAS_GET_REVISION)
|
if(INCLUDE_GIT_REVISION AND HAS_GET_REVISION)
|
||||||
set(CLEMENTINE_VERSION_DISPLAY "${GIT_REV}")
|
set(CLEMENTINE_VERSION_DISPLAY "${GIT_REV}")
|
||||||
|
Loading…
Reference in New Issue
Block a user