aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ktx/0002-Fix-versioning.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/ktx/0002-Fix-versioning.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/ktx/0002-Fix-versioning.patch')
-rw-r--r--vcpkg/ports/ktx/0002-Fix-versioning.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/ktx/0002-Fix-versioning.patch b/vcpkg/ports/ktx/0002-Fix-versioning.patch
new file mode 100644
index 0000000..1e50988
--- /dev/null
+++ b/vcpkg/ports/ktx/0002-Fix-versioning.patch
@@ -0,0 +1,17 @@
+diff --git a/cmake/version.cmake b/cmake/version.cmake
+index 4094df1a..3b2af3bb 100644
+--- a/cmake/version.cmake
++++ b/cmake/version.cmake
+@@ -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]*)
++if (!KTX_VERSION_FULL)
++ # Get latest tag
++ 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)