mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-11 11:14:24 -07:00
Prevent CMake choking on empty vars
This commit is contained in:
parent
070ff889d2
commit
de442fb9ad
@ -40,6 +40,8 @@ if(RET)
|
|||||||
else()
|
else()
|
||||||
message(STATUS "You are currently on commit ${COMMIT}")
|
message(STATUS "You are currently on commit ${COMMIT}")
|
||||||
|
|
||||||
|
# Give our output variable a default value, because CMake likes to choke on empty variables
|
||||||
|
set(TAGGEDCOMMITOUT "a")
|
||||||
# Get all the tags
|
# Get all the tags
|
||||||
execute_process(COMMAND "${GIT}" show-ref --tags -d --abbrev RESULT_VARIABLE RET OUTPUT_VARIABLE TAGGEDCOMMITOUT OUTPUT_STRIP_TRAILING_WHITESPACE)
|
execute_process(COMMAND "${GIT}" show-ref --tags -d --abbrev RESULT_VARIABLE RET OUTPUT_VARIABLE TAGGEDCOMMITOUT OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user