summaryrefslogtreecommitdiffstats
path: root/Modules/FindPostgreSQL.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-10-11 15:02:11 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2019-10-11 15:04:13 (GMT)
commitec43d96657d3cc5d3a54555c6cbd0c1619c787ca (patch)
treed39efa9c801f70e8d15f10da3c76926ffe53c80a /Modules/FindPostgreSQL.cmake
parent908dff41c6a8fc98c77d40c5f3b4e7c34ee46c3d (diff)
downloadCMake-ec43d96657d3cc5d3a54555c6cbd0c1619c787ca.zip
CMake-ec43d96657d3cc5d3a54555c6cbd0c1619c787ca.tar.gz
CMake-ec43d96657d3cc5d3a54555c6cbd0c1619c787ca.tar.bz2
FindPostgreSQL: support macports installation scheme
Macports installs into `include/postgresql${suffix}`. Add this to the list of supported suffixes. Also copy the non-server `postgresql/${suffix}` path.
Diffstat (limited to 'Modules/FindPostgreSQL.cmake')
-rw-r--r--Modules/FindPostgreSQL.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindPostgreSQL.cmake b/Modules/FindPostgreSQL.cmake
index 5fab46d..cfa4ebc 100644
--- a/Modules/FindPostgreSQL.cmake
+++ b/Modules/FindPostgreSQL.cmake
@@ -107,8 +107,11 @@ foreach(suffix ${PostgreSQL_KNOWN_VERSIONS})
list(APPEND PostgreSQL_LIBRARY_ADDITIONAL_SEARCH_SUFFIXES
"pgsql-${suffix}/lib")
list(APPEND PostgreSQL_INCLUDE_ADDITIONAL_SEARCH_SUFFIXES
+ "postgresql${suffix}"
+ "postgresql/${suffix}"
"pgsql-${suffix}/include")
list(APPEND PostgreSQL_TYPE_ADDITIONAL_SEARCH_SUFFIXES
+ "postgresql${suffix}/server"
"postgresql/${suffix}/server"
"pgsql-${suffix}/include/server")
endif()