Browse Source

Merge topic 'FindPostgreSQL-brew' into release-3.24

f799e0f23d FindPostgreSQL: Add brew-style directories to search path

Acked-by: Kitware Robot <[email protected]>
Merge-request: !7627
Brad King 3 years ago
parent
commit
6dd6f91117
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Modules/FindPostgreSQL.cmake

+ 3 - 0
Modules/FindPostgreSQL.cmake

@@ -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()