Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Find postgresql libs when they are in the qgislibs archive and LIB_DI…
…R os set (MSVC)

git-svn-id: http://svn.osgeo.org/qgis/trunk@7633 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Nov 21, 2007
1 parent b9a838f commit 322558c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions cmake/FindPostgres.cmake
Expand Up @@ -11,11 +11,21 @@

IF(WIN32)
IF (NOT POSTGRES_INCLUDE_DIR)
FIND_PATH(POSTGRES_INCLUDE_DIR libpq-fe.h /usr/local/include /usr/include c:/msys/local/include)
FIND_PATH(POSTGRES_INCLUDE_DIR libpq-fe.h
/usr/local/include
/usr/include
c:/msys/local/include
"$ENV{LIB_DIR}/include/postgresql"
)
ENDIF (NOT POSTGRES_INCLUDE_DIR)

IF (NOT POSTGRES_LIBRARY)
FIND_LIBRARY(POSTGRES_LIBRARY NAMES pq PATHS /usr/local/lib /usr/lib c:/msys/local/lib)
FIND_LIBRARY(POSTGRES_LIBRARY NAMES pq libpq PATHS
/usr/local/lib
/usr/lib
c:/msys/local/lib
"$ENV{LIB_DIR}/lib"
)
ENDIF (NOT POSTGRES_LIBRARY)

ELSE(WIN32)
Expand Down

0 comments on commit 322558c

Please sign in to comment.