FindPostgreSQL: fix PATH_SUFFIXES, better output for FPHSA
Alex
This commit is contained in:
parent
e159bb5bf8
commit
825c45739d
|
@ -125,10 +125,9 @@ find_path(PostgreSQL_TYPE_INCLUDE_DIR
|
||||||
# Look in other places.
|
# Look in other places.
|
||||||
${PostgreSQL_ROOT_DIRECTORIES}
|
${PostgreSQL_ROOT_DIRECTORIES}
|
||||||
PATH_SUFFIXES
|
PATH_SUFFIXES
|
||||||
server
|
pgsql/server
|
||||||
pgsql
|
postgresql/server
|
||||||
postgresql
|
include/server
|
||||||
include
|
|
||||||
# Help the user find it if we cannot.
|
# Help the user find it if we cannot.
|
||||||
DOC "The ${PostgreSQL_INCLUDE_DIR_MESSAGE}"
|
DOC "The ${PostgreSQL_INCLUDE_DIR_MESSAGE}"
|
||||||
)
|
)
|
||||||
|
@ -154,7 +153,7 @@ get_filename_component(PostgreSQL_LIBRARY_DIR ${PostgreSQL_LIBRARY} PATH)
|
||||||
# Did we find anything?
|
# Did we find anything?
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
find_package_handle_standard_args(PostgreSQL DEFAULT_MSG
|
find_package_handle_standard_args(PostgreSQL DEFAULT_MSG
|
||||||
PostgreSQL_INCLUDE_DIR PostgreSQL_TYPE_INCLUDE_DIR PostgreSQL_LIBRARY)
|
PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR PostgreSQL_TYPE_INCLUDE_DIR)
|
||||||
|
|
||||||
set( PostgreSQL_FOUND ${POSTGRESQL_FOUND})
|
set( PostgreSQL_FOUND ${POSTGRESQL_FOUND})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue