Skip to content

Commit

Permalink
Get tag version from github.
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed May 16, 2024
1 parent 6d71d16 commit f737836
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ set(VERSION_MAJOR 1)
set(VERSION_API 0)
set(VERSION_ABI 0)
set(VERSION_PATCH 0)
execute_process(COMMAND bash -c "git describe --abbrev=0 --tags | cut -f 3 -d ." OUTPUT_VARIABLE VERSION_PATCH ERROR_VARIABLE VERSION_ERROR OUTPUT_STRIP_TRAILING_WHITESPACE)
if(VERSION_ERROR)
message(FATAL_ERROR "cannot determine version")
endif()


cmake_policy(SET CMP0011 NEW)

Expand Down

0 comments on commit f737836

Please sign in to comment.