Skip to content
Permalink
Browse files

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
timlinux committed Nov 21, 2007
1 parent b9a838f commit 322558c99f561148980e36411eff588501f34aff
Showing with 12 additions and 2 deletions.
  1. +12 −2 cmake/FindPostgres.cmake
@@ -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)

0 comments on commit 322558c

Please sign in to comment.
You can’t perform that action at this time.