Skip to content

Commit

Permalink
feat cmake: add postgresql search directories
Browse files Browse the repository at this point in the history
------------------------

Tests: протестировано CI

Pull Request resolved: <#788>
commit_hash:8f51c552919e9f90aa1a7c074c08717dcb70c930
  • Loading branch information
segoon committed Dec 15, 2024
1 parent 7806292 commit 638ece5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/modules/FindPostgreSQLInternal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ _userver_module_find_include(
/usr/include/postgresql/20/server
/usr/local/include/postgresql/server # FreeBSD
/usr/include/postgresql/server # Manjaro
/usr/local/pgsql/include/server # postgresql: make install
PATH_SUFFIXES
pgsql/server # postgresql-server-devel
)
Expand All @@ -31,16 +32,19 @@ _userver_module_find_include(
${USERVER_PG_INCLUDE_DIR}/internal
${USERVER_PG_INCLUDE_DIR}/postgresql/internal
/usr/local/include/postgresql/internal # FreeBSD
/usr/local/pgsql/include/internal # postgresql: make install
PATH_SUFFIXES
postgresql/internal # libpq-dev
pgsql/internal # postgresql-private-devel

)

_userver_module_find_include(
NAMES libpq-fe.h
PATHS
${USERVER_PG_INCLUDE_DIR}
/usr/local/include # FreeBSD
/usr/local/pgsql/include # postgresql: make install
PATH_SUFFIXES
postgresql
pgsql
Expand All @@ -51,6 +55,7 @@ _userver_module_find_library(
PATHS
${USERVER_PG_LIBRARY_DIR}
/usr/local/lib # FreeBSD
/usr/local/pgsql/lib # postgresql: make install
)

_userver_module_find_library(
Expand All @@ -67,6 +72,7 @@ _userver_module_find_library(
/usr/lib/postgresql/18/lib
/usr/lib/postgresql/19/lib
/usr/lib/postgresql/20/lib
/usr/local/pgsql/lib # postgresql: make install
)

_userver_module_find_library(
Expand All @@ -83,6 +89,7 @@ _userver_module_find_library(
/usr/lib/postgresql/18/lib
/usr/lib/postgresql/19/lib
/usr/lib/postgresql/20/lib
/usr/local/pgsql/lib # postgresql: make install
)

_userver_module_end()

0 comments on commit 638ece5

Please sign in to comment.