Skip to content

Commit

Permalink
Merge pull request #279 from anarkiwi/ver
Browse files Browse the repository at this point in the history
Get tag version from github.
  • Loading branch information
anarkiwi authored May 16, 2024
2 parents 6d71d16 + f737836 commit 22bfec5
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 22bfec5

Please sign in to comment.