aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/nanodbc/find-unixodbc.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/find-unixodbc.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/nanodbc/find-unixodbc.patch')
-rw-r--r--vcpkg/ports/nanodbc/find-unixodbc.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/vcpkg/ports/nanodbc/find-unixodbc.patch b/vcpkg/ports/nanodbc/find-unixodbc.patch
new file mode 100644
index 0000000..071bb62
--- /dev/null
+++ b/vcpkg/ports/nanodbc/find-unixodbc.patch
@@ -0,0 +1,24 @@
+--- "a/CMakeLists.txt"
++++ "b/CMakeLists.txt"
+@@ -110,6 +110,13 @@ message(STATUS "nanodbc feature: Enable SQL_NO_DATA bug workaround - ${NANODBC_E
+ ## find unixODBC or iODBC config binary
+ ########################################
+ if(UNIX)
++ # Try to find unixodbc package first
++ find_package(unixodbc)
++ if(unixodbc_FOUND)
++ message(STATUS "nanodbc build: unixODBC package found")
++ set(ODBCLIB UNIX::odbc)
++ set(ODBC_CONFIG true)
++ else()
+ # Try to find unixODBC first via odbc_config program.
+ find_program(ODBC_CONFIG odbc_config
+ PATHS $ENV{ODBC_PATH}/bin /usr/bin /usr/local/bin)
+@@ -158,6 +165,7 @@ if(UNIX)
+ endif()
+ endif()
+ endif()
++ endif()
+
+ if(NOT ODBC_CONFIG)
+ message(FATAL_ERROR "can not find a suitable odbc driver manager")