Skip to content

Commit 47c88d1

Browse files
committed
Simplify check
1 parent d675ac3 commit 47c88d1

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

cmake/ext/pgsql/CMakeLists.txt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,11 @@ if(TARGET PostgreSQL::PostgreSQL)
112112
HAVE_PG_SET_CHUNKED_ROWS_SIZE
113113
)
114114

115-
# Available since PostgreSQL 17.
116-
if(PostgreSQL_VERSION_STRING VERSION_GREATER_EQUAL 17)
117-
check_library_exists(
118-
PostgreSQL::PostgreSQL
119-
PQclosePrepared
120-
""
121-
HAVE_PG_CLOSE_STMT
122-
)
123-
endif()
115+
check_library_exists(
116+
PostgreSQL::PostgreSQL
117+
PQclosePrepared
118+
""
119+
HAVE_PG_CLOSE_STMT
120+
)
124121
endif()
125122
endif()

0 commit comments

Comments
 (0)