Skip to content

Commit

Permalink
Fixed lib suffix for 64-bit builds
Browse files Browse the repository at this point in the history
  • Loading branch information
9EOR9 committed Feb 10, 2015
1 parent a58636a commit 5a086e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/FindDM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
# We expect that the driver manager is UnixODBC

# Try to find the include directory, giving precedence to special variables
IF ("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
SET(LIB_SUFFIX "lib64")
ELSE()
SET(LIB_SUFFIX "lib")
ENDIF()
FIND_PATH(ODBC_INCLUDE_DIR sql.h
HINTS ${DM_INCLUDE_DIR}
${DM_DIR}
Expand Down Expand Up @@ -48,7 +53,7 @@ FIND_PATH(ODBC_LIB_DIR libodbc.so
ENV DM_DIR
PATHS /usr/local
/usr
PATH_SUFFIXES lib
PATH_SUFFIXES ${LIB_SUFFIX}
NO_DEFAULT_PATH
DOC "Driver Manager Libraries")
FIND_PATH(ODBC_LIB_DIR libodbc.so
Expand Down

0 comments on commit 5a086e0

Please sign in to comment.