mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-15 22:35:33 -05:00
FindPostgreSQL: Add brew-style directories to search path
As of 14.5, homebrew names PostgreSQL directories with the version number, e.g., `postgresql@14`.
This commit is contained in:
@@ -121,13 +121,16 @@ foreach(suffix ${PostgreSQL_KNOWN_VERSIONS})
|
||||
if(UNIX)
|
||||
list(APPEND PostgreSQL_LIBRARY_ADDITIONAL_SEARCH_SUFFIXES
|
||||
"postgresql${suffix}"
|
||||
"postgresql@${suffix}"
|
||||
"pgsql-${suffix}/lib")
|
||||
list(APPEND PostgreSQL_INCLUDE_ADDITIONAL_SEARCH_SUFFIXES
|
||||
"postgresql${suffix}"
|
||||
"postgresql@${suffix}"
|
||||
"postgresql/${suffix}"
|
||||
"pgsql-${suffix}/include")
|
||||
list(APPEND PostgreSQL_TYPE_ADDITIONAL_SEARCH_SUFFIXES
|
||||
"postgresql${suffix}/server"
|
||||
"postgresql@${suffix}/server"
|
||||
"postgresql/${suffix}/server"
|
||||
"pgsql-${suffix}/include/server")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user