summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-02-23 19:30:57 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-02-23 19:30:57 +0100
commit14e1db6c5755d46cd43541c37e483b11d493b40a (patch)
tree50767c50d5a9db593e9ab20ae14a2edfc6f719c3
parent67b5d507010be0528c886133cae73fff0e3c7712 (diff)
downloadfastd-14e1db6c5755d46cd43541c37e483b11d493b40a.tar
fastd-14e1db6c5755d46cd43541c37e483b11d493b40a.zip
Use git version with --dirty
-rw-r--r--GitVersion.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/GitVersion.cmake b/GitVersion.cmake
index 8eed8c5..527332d 100644
--- a/GitVersion.cmake
+++ b/GitVersion.cmake
@@ -4,7 +4,7 @@ mark_as_advanced(GIT_EXECUTABLE)
function(git_version RESULT_VAR DIR)
set(${RESULT_VAR} "" PARENT_SCOPE)
if(GIT_EXECUTABLE)
- execute_process(COMMAND ${GIT_EXECUTABLE} describe WORKING_DIRECTORY ${DIR} OUTPUT_VARIABLE git_version_OUTPUT ERROR_VARIABLE git_version_ERROR RESULT_VARIABLE git_version_RESULT OUTPUT_STRIP_TRAILING_WHITESPACE)
+ execute_process(COMMAND ${GIT_EXECUTABLE} describe --dirty WORKING_DIRECTORY ${DIR} OUTPUT_VARIABLE git_version_OUTPUT ERROR_VARIABLE git_version_ERROR RESULT_VARIABLE git_version_RESULT OUTPUT_STRIP_TRAILING_WHITESPACE)
if(${git_version_RESULT} EQUAL 0)
set(${RESULT_VAR} "${git_version_OUTPUT}" PARENT_SCOPE)