diff options
author | Aki <please@ignore.pl> | 2022-02-13 19:24:45 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-02-13 19:24:45 +0100 |
commit | faf2d7c9b6ca790e2efd55ba2fa5515bedc9f44c (patch) | |
tree | b3ad23dd034e6cc3ff0087201008679ea50dfe93 /cmake/modules/GitDescribe.cmake | |
parent | ba8a2b5fbe8cc688f506c3dac1f8713d67c6405a (diff) | |
download | starshatter-faf2d7c9b6ca790e2efd55ba2fa5515bedc9f44c.zip starshatter-faf2d7c9b6ca790e2efd55ba2fa5515bedc9f44c.tar.gz starshatter-faf2d7c9b6ca790e2efd55ba2fa5515bedc9f44c.tar.bz2 |
Added doc to GitDescribed and cleaned up all cmake modules
Diffstat (limited to 'cmake/modules/GitDescribe.cmake')
-rw-r--r-- | cmake/modules/GitDescribe.cmake | 4 |
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} |