aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/nanodbc/rename-version.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/nanodbc/rename-version.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/nanodbc/rename-version.patch')
-rw-r--r--vcpkg/ports/nanodbc/rename-version.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/nanodbc/rename-version.patch b/vcpkg/ports/nanodbc/rename-version.patch
new file mode 100644
index 0000000..a236cf8
--- /dev/null
+++ b/vcpkg/ports/nanodbc/rename-version.patch
@@ -0,0 +1,13 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -20,8 +20,8 @@
+ ########################################
+ ## nanodbc version
+ ########################################
+-file(STRINGS VERSION NANODBC_VERSION REGEX "[0-9]+\\.[0-9]+\\.[0-9]+")
++file(STRINGS "VERSION.txt" NANODBC_VERSION REGEX "[0-9]+\\.[0-9]+\\.[0-9]+")
+ string(REGEX REPLACE "^([0-9]+)\\.[0-9]+\\.[0-9]+" "\\1" NANODBC_VERSION_MAJOR "${NANODBC_VERSION}")
+ string(REGEX REPLACE "^[0-9]+\\.([0-9])+\\.[0-9]+" "\\1" NANODBC_VERSION_MINOR "${NANODBC_VERSION}")
+ string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+)" "\\1" NANODBC_VERSION_PATCH "${NANODBC_VERSION}")
+ message(STATUS "nanodbc version: ${NANODBC_VERSION}")
+