summaryrefslogtreecommitdiff
path: root/Modules/FindPostgreSQL.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-07-29 21:13:52 +0200
committerAlex Neundorf <neundorf@kde.org>2011-08-01 22:32:21 +0200
commit825c45739d888cd5fe43875a9e0497c7b389ae70 (patch)
tree60c7f8def1851d00d8af1c1b1694fd6a59ffdc69 /Modules/FindPostgreSQL.cmake
parente159bb5bf80eba01d2244e2ef1333b145c2375fe (diff)
downloadcmake-825c45739d888cd5fe43875a9e0497c7b389ae70.tar.gz
FindPostgreSQL: fix PATH_SUFFIXES, better output for FPHSA
Alex
Diffstat (limited to 'Modules/FindPostgreSQL.cmake')
-rw-r--r--Modules/FindPostgreSQL.cmake9
1 files changed, 4 insertions, 5 deletions
diff --git a/Modules/FindPostgreSQL.cmake b/Modules/FindPostgreSQL.cmake
index 0445090c89..55f95c6170 100644
--- a/Modules/FindPostgreSQL.cmake
+++ b/Modules/FindPostgreSQL.cmake
@@ -125,10 +125,9 @@ find_path(PostgreSQL_TYPE_INCLUDE_DIR
# Look in other places.
${PostgreSQL_ROOT_DIRECTORIES}
PATH_SUFFIXES
- server
- pgsql
- postgresql
- include
+ pgsql/server
+ postgresql/server
+ include/server
# Help the user find it if we cannot.
DOC "The ${PostgreSQL_INCLUDE_DIR_MESSAGE}"
)
@@ -154,7 +153,7 @@ get_filename_component(PostgreSQL_LIBRARY_DIR ${PostgreSQL_LIBRARY} PATH)
# Did we find anything?
include(FindPackageHandleStandardArgs)
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})