More PATH_SUFFIXES for finding Postgresql and also search catalog/pg_type.h
Patch from Jaroslaw Staniek, reviewed by Andrew Maclean Alex
This commit is contained in:
parent
49a00ec2de
commit
217d068b6d
@ -113,6 +113,21 @@ find_path(PostgreSQL_INCLUDE_DIR
|
|||||||
# Look in other places.
|
# Look in other places.
|
||||||
${PostgreSQL_ROOT_DIRECTORIES}
|
${PostgreSQL_ROOT_DIRECTORIES}
|
||||||
PATH_SUFFIXES
|
PATH_SUFFIXES
|
||||||
|
pgsql
|
||||||
|
postgresql
|
||||||
|
include
|
||||||
|
# Help the user find it if we cannot.
|
||||||
|
DOC "The ${PostgreSQL_INCLUDE_DIR_MESSAGE}"
|
||||||
|
)
|
||||||
|
|
||||||
|
find_path(PostgreSQL_TYPE_INCLUDE_DIR
|
||||||
|
NAMES catalog/pg_type.h
|
||||||
|
PATHS
|
||||||
|
# Look in other places.
|
||||||
|
${PostgreSQL_ROOT_DIRECTORIES}
|
||||||
|
PATH_SUFFIXES
|
||||||
|
server
|
||||||
|
pgsql
|
||||||
postgresql
|
postgresql
|
||||||
include
|
include
|
||||||
# Help the user find it if we cannot.
|
# Help the user find it if we cannot.
|
||||||
@ -156,6 +171,13 @@ if(PostgreSQL_FOUND)
|
|||||||
)
|
)
|
||||||
endif(EXISTS "${PostgreSQL_INCLUDE_DIR}")
|
endif(EXISTS "${PostgreSQL_INCLUDE_DIR}")
|
||||||
|
|
||||||
|
if(EXISTS "${PostgreSQL_TYPE_INCLUDE_DIR}")
|
||||||
|
list(APPEND PostgreSQL_INCLUDE_DIRS
|
||||||
|
${PostgreSQL_TYPE_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
endif(EXISTS "${PostgreSQL_TYPE_INCLUDE_DIR}")
|
||||||
|
|
||||||
|
|
||||||
if(EXISTS "${PostgreSQL_LIBRARY_DIR}")
|
if(EXISTS "${PostgreSQL_LIBRARY_DIR}")
|
||||||
set(PostgreSQL_LIBRARY_DIRS
|
set(PostgreSQL_LIBRARY_DIRS
|
||||||
${PostgreSQL_LIBRARY_DIR}
|
${PostgreSQL_LIBRARY_DIR}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user