mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
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.
This commit is contained in:
@@ -107,8 +107,11 @@ foreach(suffix ${PostgreSQL_KNOWN_VERSIONS})
|
|||||||
list(APPEND PostgreSQL_LIBRARY_ADDITIONAL_SEARCH_SUFFIXES
|
list(APPEND PostgreSQL_LIBRARY_ADDITIONAL_SEARCH_SUFFIXES
|
||||||
"pgsql-${suffix}/lib")
|
"pgsql-${suffix}/lib")
|
||||||
list(APPEND PostgreSQL_INCLUDE_ADDITIONAL_SEARCH_SUFFIXES
|
list(APPEND PostgreSQL_INCLUDE_ADDITIONAL_SEARCH_SUFFIXES
|
||||||
|
"postgresql${suffix}"
|
||||||
|
"postgresql/${suffix}"
|
||||||
"pgsql-${suffix}/include")
|
"pgsql-${suffix}/include")
|
||||||
list(APPEND PostgreSQL_TYPE_ADDITIONAL_SEARCH_SUFFIXES
|
list(APPEND PostgreSQL_TYPE_ADDITIONAL_SEARCH_SUFFIXES
|
||||||
|
"postgresql${suffix}/server"
|
||||||
"postgresql/${suffix}/server"
|
"postgresql/${suffix}/server"
|
||||||
"pgsql-${suffix}/include/server")
|
"pgsql-${suffix}/include/server")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user