new Makefile target: release-static

This commit is contained in:
Riccardo Spagni 2014-09-15 08:13:26 +02:00
parent 5a3ce8a7dc
commit d97191d4f9
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
2 changed files with 5 additions and 1 deletions

View file

@ -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)
if(RET AND NOT ${TAGGEDCOMMIT} STREQUAL "")
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()