Merge pull request #124 from blueyed/cmake-add-dirty-to-git-describe

cmake: add '--dirty' flag to 'git describe' for version
This commit is contained in:
Daniel Hahler 2015-02-18 23:34:42 +01:00
commit 9c80d7989d
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ endif()
if(EXISTS ${SOURCE_DIR}/.git/HEAD AND GIT_EXECUTABLE)
# get current version
execute_process(
COMMAND ${GIT_EXECUTABLE} describe
COMMAND ${GIT_EXECUTABLE} describe --dirty
WORKING_DIRECTORY ${SOURCE_DIR}
OUTPUT_VARIABLE VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)