summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-11 14:58:22 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-01-11 14:58:22 (GMT)
commit396e9378a820cc5216aecce6bff42f526f4f7c26 (patch)
tree7baaf91c59d1c9ee669c12b14b03903c8c786a9a /Modules
parenta8b576244f729e543795750eb6c9e188c0e1fe66 (diff)
parent5ffee691ee0c55d043238960cf1149cbcfb86047 (diff)
downloadCMake-396e9378a820cc5216aecce6bff42f526f4f7c26.zip
CMake-396e9378a820cc5216aecce6bff42f526f4f7c26.tar.gz
CMake-396e9378a820cc5216aecce6bff42f526f4f7c26.tar.bz2
Merge topic 'pgsql-yum'
5ffee691 FindPostgreSQL: automatically find installations from yum.postgresql.org
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindPostgreSQL.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/FindPostgreSQL.cmake b/Modules/FindPostgreSQL.cmake
index 874128c..9e2194c 100644
--- a/Modules/FindPostgreSQL.cmake
+++ b/Modules/FindPostgreSQL.cmake
@@ -88,8 +88,13 @@ foreach(suffix ${PostgreSQL_KNOWN_VERSIONS})
"PostgreSQL/${suffix}/include/server")
endif()
if(UNIX)
+ list(APPEND PostgreSQL_LIBRARY_ADDITIONAL_SEARCH_SUFFIXES
+ "pgsql-${suffix}/lib")
+ list(APPEND PostgreSQL_INCLUDE_ADDITIONAL_SEARCH_SUFFIXES
+ "pgsql-${suffix}/include")
list(APPEND PostgreSQL_TYPE_ADDITIONAL_SEARCH_SUFFIXES
- "postgresql/${suffix}/server")
+ "postgresql/${suffix}/server"
+ "pgsql-${suffix}/include/server")
endif()
endforeach()