Skip to content

Commit 4301d04

Browse files
Calvinjminclaude
andcommitted
fix: Remove NO_DEFAULT_PATH from Linux ODBC detection
The NO_DEFAULT_PATH flag was preventing CMake from finding ODBC libraries installed in standard system locations on Ubuntu (e.g., /usr/lib/x86_64-linux-gnu). Removing this flag allows CMake to search both the specified paths and the standard system library paths, making it work correctly on GitHub Actions Ubuntu runners. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 594841f commit 4301d04

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,13 @@ else()
8888
PATHS
8989
/usr/include
9090
/usr/local/include
91-
PATH_SUFFIXES odbc
92-
NO_DEFAULT_PATH)
91+
PATH_SUFFIXES odbc)
9392

9493
find_library(ODBC_LIBRARY
9594
NAMES odbc unixodbc
9695
PATHS
9796
/usr/lib
98-
/usr/local/lib
99-
NO_DEFAULT_PATH)
97+
/usr/local/lib)
10098

10199
if(ODBC_LIBRARY)
102100
set(ODBC_LIBRARIES ${ODBC_LIBRARY})

0 commit comments

Comments
 (0)