Skip to content

Commit 346ae98

Browse files
authored
Update FindPostgreSQLInternal.cmake
1 parent 2f14f91 commit 346ae98

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

cmake/modules/FindPostgreSQLInternal.cmake

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ _userver_module_begin(
1313
postgresql16-server
1414
)
1515

16-
1716
_userver_module_find_include(
1817
NAMES
1918
postgres_fe.h
@@ -35,7 +34,6 @@ _userver_module_find_include(
3534
pgsql/server # postgresql-server-devel
3635
)
3736

38-
3937
_userver_module_find_include(
4038
NAMES
4139
libpq-int.h
@@ -49,7 +47,6 @@ _userver_module_find_include(
4947
pgsql/internal # postgresql-private-devel
5048
)
5149

52-
5350
_userver_module_find_include(
5451
NAMES
5552
libpq-fe.h
@@ -62,23 +59,20 @@ _userver_module_find_include(
6259
pgsql
6360
)
6461

65-
6662
_userver_module_find_library(
6763
NAMES libpq.a # must be a static library as we use internal symbols
6864
PATHS ${USERVER_PG_LIBRARY_DIR} /usr/local/lib # FreeBSD
6965
/usr/local/pgsql/lib # postgresql: make install
7066
)
7167

72-
7368
# PostgreSQL 18 can be configured with option --with-curl. In that case we have the libpq-oauth library
7469
_userver_module_find_library(
7570
NAMES libpq-oauth.a
7671
PATHS ${USERVER_PG_LIBRARY_DIR} /usr/local/lib # FreeBSD
7772
/usr/local/pgsql/lib # postgresql: make install
7873
)
7974
find_package(CURL REQUIRED)
80-
target_link_library(PostgreSQLInternal INTERFACE CURL::libcurl)
81-
75+
target_link_libraries(PostgreSQLInternal INTERFACE CURL::libcurl)
8276

8377
_userver_module_find_library(
8478
NAMES
@@ -98,7 +92,6 @@ _userver_module_find_library(
9892
/usr/local/pgsql/lib # postgresql: make install
9993
)
10094

101-
10295
_userver_module_find_library(
10396
NAMES
10497
libpgport.a
@@ -117,5 +110,4 @@ _userver_module_find_library(
117110
/usr/local/pgsql/lib # postgresql: make install
118111
)
119112

120-
121113
_userver_module_end()

0 commit comments

Comments
 (0)