summaryrefslogtreecommitdiffstats
path: root/GitVersion.cmake
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-02-25 07:01:28 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-02-25 07:01:28 +0100
commitf19b8c4d82380ae0defb6c6041270d815164b0d2 (patch)
tree2155a87f86d48f520e77d4fb2fbb6884128da960 /GitVersion.cmake
parentda761883608d20798c66a2e9243240bb6142b024 (diff)
downloadfastd-f19b8c4d82380ae0defb6c6041270d815164b0d2.tar
fastd-f19b8c4d82380ae0defb6c6041270d815164b0d2.zip
Rewrite 'git describe' version support to update the version whenever needed
Diffstat (limited to 'GitVersion.cmake')
-rw-r--r--GitVersion.cmake13
1 files changed, 0 insertions, 13 deletions
diff --git a/GitVersion.cmake b/GitVersion.cmake
deleted file mode 100644
index 527332d..0000000
--- a/GitVersion.cmake
+++ /dev/null
@@ -1,13 +0,0 @@
-find_program(GIT_EXECUTABLE git DOC "path to the git executable")
-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 --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)
- endif()
- endif()
-endfunction(git_version)