summaryrefslogtreecommitdiffhomepage
path: root/cmake/modules/GitDescribe.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/GitDescribe.cmake')
-rw-r--r--cmake/modules/GitDescribe.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/modules/GitDescribe.cmake b/cmake/modules/GitDescribe.cmake
index 99bd1b5..10b54ed 100644
--- a/cmake/modules/GitDescribe.cmake
+++ b/cmake/modules/GitDescribe.cmake
@@ -1,5 +1,7 @@
+# Finds a human readable version name for current repository revision based on available tags. Provided variable VAR
+# will be set to contain found value.
+
function(git_describe VAR)
- set(VAR ${ARGV0})
execute_process(
COMMAND git describe --tags HEAD
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}