mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-04 00:04:03 -04:00
Find postgresql libs when they are in the qgislibs archive and LIB_DIR os set (MSVC)
git-svn-id: http://svn.osgeo.org/qgis/trunk@7633 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
b9a838fe84
commit
322558c99f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user