oops, format the version string properly

This commit is contained in:
Menche 2016-07-31 18:01:12 -07:00 committed by darkrose
parent 59e7c396df
commit 1d105a5601
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@ endif(${CMAKE_VERSION} STREQUAL "2.8.2")
project(voxelands)
# Also remember to set PROTOCOL_VERSION in clientserver.h when releasing
set(VERSION_STRING "")
execute_process(COMMAND git log -1 --date=short --format='%cd-%h' OUTPUT_VARIABLE VERSION_STRING)
execute_process(COMMAND git log -1 --date=short --format=%cd-%h OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE VERSION_STRING)
set(VERSION_STRING \"${VERSION_STRING}\")
MESSAGE(STATUS "*** Will build version ${VERSION_STRING} ***")