Skip to content

Commit

Permalink
Allow KTX_VERSION_FULL to be overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Jun 23, 2024
1 parent 608a8bc commit fbf4a36
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ function(generate_version _var )
set(${_var} "${KTX_VERSION}" PARENT_SCOPE)
endfunction()

# Get latest tag
git_describe_raw(KTX_VERSION_FULL --abbrev=0 --match v[0-9]*)
# Get latest tag from git if not passed to cmake
if(NOT KTX_VERSION_FULL)
git_describe_raw(KTX_VERSION_FULL --abbrev=0 --match v[0-9]*)
endif()
#message("KTX full version: ${KTX_VERSION_FULL}")

# generate_version(TOKTX_VERSION tools/toktx)
Expand Down

0 comments on commit fbf4a36

Please sign in to comment.