diff options
author | Riccardo Spagni <ric@spagni.net> | 2014-09-15 08:24:32 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-09-15 08:24:32 +0200 |
commit | 51011ed96041c8a7807cca10183afc868160489f (patch) | |
tree | 33721f8db5cfcdb46090e2093bdb4706872d1276 /src/version.cmake | |
parent | ignore tag check if we haven't pulled tags (diff) | |
download | monero-51011ed96041c8a7807cca10183afc868160489f.tar.xz |
fix logic in tag check, AND -> OR
Signed-off-by: Riccardo Spagni <ric@spagni.net>
Diffstat (limited to 'src/version.cmake')
-rw-r--r-- | src/version.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/version.cmake b/src/version.cmake index 69890426b..c115b9d36 100644 --- a/src/version.cmake +++ b/src/version.cmake @@ -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() |