We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fdd236 commit ffcc5c5Copy full SHA for ffcc5c5
CMake/git.cmake
@@ -1,6 +1,8 @@
1
function(get_git_tag output_var)
2
+ #COMMAND git describe --abbrev=0 --tags
3
execute_process(
- COMMAND git describe --abbrev=0 --tags
4
+ COMMAND git tag --sort -creatordate
5
+ COMMAND head -n 1
6
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
7
RESULT_VARIABLE _EXIT_CODE
8
OUTPUT_VARIABLE GIT_TAG
0 commit comments