mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 22:28:52 +00:00
fix logic in tag check, AND -> OR
Signed-off-by: Riccardo Spagni <ric@spagni.net>
This commit is contained in:
parent
3129d51eb4
commit
51011ed960
@ -7,7 +7,7 @@ if(RET)
|
||||
else()
|
||||
message(STATUS "You are currently on commit ${COMMIT}")
|
||||
execute_process(COMMAND "${GIT}" show-ref --tags -d --abbrev COMMAND awk "END{print $1}" RESULT_VARIABLE RET OUTPUT_VARIABLE TAGGEDCOMMIT OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
if(RET AND NOT TAGGEDCOMMIT)
|
||||
if(RET OR NOT TAGGEDCOMMIT)
|
||||
message(WARNING "Cannot determine most recent tag. Make sure that you are building either from a Git working tree or from a source archive.")
|
||||
set(VERSIONTAG "${COMMIT}")
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user