diff options
author | Denis Protivensky <denis-protivensky@users.noreply.github.com> | 2021-11-22 22:53:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 11:53:50 -0800 |
commit | 790f411542764e59b38f25398703b34235fbdd18 (patch) | |
tree | a5d297262692a6ff0b56d945769d558d96f479ab | |
parent | e89de4411d441954d523b851dd10dfedde502450 (diff) | |
download | flatbuffers-790f411542764e59b38f25398703b34235fbdd18.tar.gz flatbuffers-790f411542764e59b38f25398703b34235fbdd18.tar.bz2 flatbuffers-790f411542764e59b38f25398703b34235fbdd18.zip |
[cmake] Fix getting version info from tags during the build (#6936)
Use `git describe --tags` to query for lightweight tags along with
the annotated ones.
-rw-r--r-- | CMake/Version.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMake/Version.cmake b/CMake/Version.cmake index cc6ca1fa..a577eef2 100644 --- a/CMake/Version.cmake +++ b/CMake/Version.cmake @@ -6,7 +6,7 @@ set(VERSION_COMMIT 0) find_program(GIT git) if(GIT) execute_process( - COMMAND ${GIT} describe + COMMAND ${GIT} describe --tags WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE GIT_DESCRIBE_DIRTY OUTPUT_STRIP_TRAILING_WHITESPACE |