FindPostgreSQL: also search for libraries in the MacPorts suffix

This commit is contained in:
Ben Boeckel
2019-11-13 08:41:43 -05:00
parent c1d5d5eb11
commit 24ae45fb0c

View File

@@ -105,6 +105,7 @@ foreach(suffix ${PostgreSQL_KNOWN_VERSIONS})
endif()
if(UNIX)
list(APPEND PostgreSQL_LIBRARY_ADDITIONAL_SEARCH_SUFFIXES
"postgresql${suffix}"
"pgsql-${suffix}/lib")
list(APPEND PostgreSQL_INCLUDE_ADDITIONAL_SEARCH_SUFFIXES
"postgresql${suffix}"