Skip to content

Commit

Permalink
Updated PostgreSQL Search Paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Daztek committed Jan 13, 2019
1 parent 7b1f05b commit 5baa2a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion Build/CMakeModules/FindPostgreSQL.cmake
Expand Up @@ -18,7 +18,7 @@ FIND_PATH(POSTGRESQL_INCLUDE_DIR libpq-fe.h
SET(POSTGRESQL_NAMES pq)
FIND_LIBRARY(POSTGRESQL_LIBRARY
NAMES ${POSTGRESQL_NAMES}
PATHS /usr/lib /usr/local/lib
PATHS /usr/lib /usr/local/lib /usr/lib/i386-linux-gnu /usr/lib32
)

IF (POSTGRESQL_INCLUDE_DIR AND POSTGRESQL_LIBRARY)
Expand Down
3 changes: 0 additions & 3 deletions Plugins/SQL/CMakeLists.txt
Expand Up @@ -12,9 +12,6 @@ else (MYSQL_FOUND)
message(WARNING "Not compiling with MYSQL support, not found")
endif (MYSQL_FOUND)

set(PostgreSQL_INCLUDE_DIR "/usr/include/postgresql")
set(PostgreSQL_LIBRARY_DIR "/usr/lib/i386-linux-gnu")

find_package(PostgreSQL)
if (POSTGRESQL_FOUND)
add_definitions(-DNWNX_SQL_POSTGRESQL_SUPPORT)
Expand Down

0 comments on commit 5baa2a8

Please sign in to comment.