cmake: use 'git describe --tags --always'

This commit is contained in:
Rosalie Wanders committed 2022-01-24 15:52:57 +01:00
1 parent 7ff3f06361
commit 0967fa4e46
1 file changed
+1 -1
+1 -1
View File
@@ -10,7 +10,7 @@ project(RMG)
find_package(Git REQUIRED)
execute_process(
COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
COMMAND ${GIT_EXECUTABLE} describe --tags --always
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
OUTPUT_VARIABLE GIT_VERSION
ERROR_QUIET