This repository has been archived on 2025-02-12. You can view files and clone it, but cannot push or open issues or pull requests.
tinjac/wt-3.1.7a/cmake/WtFindPostgresql.txt
2010-12-29 16:01:33 +00:00

35 lines
745 B
Text

# This file defines:
# - POSTGRES_LIBRARIES
# - POSTGRES_INCLUDE_DIRS
# - POSTGRES_FOUND
# Taking into account:
# - POSTGRES_PREFIX
FIND_LIBRARY(POSTGRES_LIBRARIES
NAMES
pq libpq
PATHS
${POSTGRES_PREFIX}/lib
/usr/lib
/usr/local/lib
/opt/local/lib
)
FIND_PATH(POSTGRES_INCLUDE libpq-fe.h
${POSTGRES_PREFIX}/include
${POSTGRES_PREFIX}/postgresql/include
/usr/include
/usr/include/postgresql
/usr/local/include
/usr/local/include/postgresql
/opt/local/include
/opt/local/include/postgresql
)
SET(POSTGRES_FOUND FALSE)
IF(POSTGRES_LIBRARIES AND POSTGRES_INCLUDE)
SET(POSTGRES_FOUND TRUE)
SET(POSTGRES_INCLUDE_DIRS ${POSTGRES_INCLUDE})
ENDIF(POSTGRES_LIBRARIES AND POSTGRES_INCLUDE)