File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ set_package_properties(
8181
8282target_link_libraries (php_ext_pdo_pgsql PUBLIC PostgreSQL::PostgreSQL)
8383
84- # Sanity check .
84+ # Check PostgreSQL library (libpq) features .
8585if (TARGET PostgreSQL::PostgreSQL)
8686 cmake_push_check_state(RESET)
8787 set (CMAKE_REQUIRED_LIBRARIES PostgreSQL::PostgreSQL)
Original file line number Diff line number Diff line change @@ -85,19 +85,7 @@ set_package_properties(
8585
8686target_link_libraries (php_ext_pgsql PUBLIC PostgreSQL::PostgreSQL)
8787
88- # Check features of PostgreSQL library (libpq). As of PostgreSQL (and libpq)
89- # version 14 there are features macros available in the libpq-fe.h. Additional
90- # checks for specific symbols below are done to avoid issues present on
91- # platforms that might package libpq development headers and PostgreSQL server
92- # development headers into a single all-in-one package (for example,
93- # postgresql-devel on openSUSE Linux at least on version 15), where libpq
94- # package contains the latest library, but the development package contains the
95- # header files of different PostgreSQL version (for example, postgresql16-devel)
96- # Which leads to unexpected behavior if libpq would be version 17, but
97- # libpq-fe.h would belong to the package version 16. Otherwise, ideally only
98- # feature macros checks (LIBPQ_HAS_CHUNK_MODE, etc.) should be sufficient for
99- # most platforms.
100-
88+ # Check PostgreSQL library (libpq) features.
10189if (TARGET PostgreSQL::PostgreSQL)
10290 cmake_push_check_state(RESET)
10391 set (CMAKE_REQUIRED_LIBRARIES PostgreSQL::PostgreSQL)
You can’t perform that action at this time.
0 commit comments