mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-10-10 20:46:07 +02:00
cmake: use 'git describe --tags --always'
This commit is contained in:
1 parent
7ff3f06361
commit
0967fa4e46
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user