Skip to content

Commit 20195d7

Browse files
committed
Merge branch 'PHP-8.4'
2 parents 770bc42 + 9268611 commit 20195d7

File tree

10 files changed

+148
-7
lines changed

10 files changed

+148
-7
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#[=============================================================================[
2+
# FindBZip2
3+
4+
This module overrides the upstream CMake `FindBZip2` module with few
5+
customizations:
6+
7+
* Added BZip2_VERSION result variable for CMake < 4.2.
8+
9+
See: https://cmake.org/cmake/help/latest/module/FindBZip2.html
10+
#]=============================================================================]
11+
12+
# Find package with upstream CMake find module. Absolute path prevents the
13+
# maximum nesting/recursion depth error on some systems, like macOS.
14+
include(${CMAKE_ROOT}/Modules/FindBZip2.cmake)
15+
16+
if(CMAKE_VERSION VERSION_LESS 4.2)
17+
set(BZip2_VERSION "${BZIP2_VERSION}")
18+
endif()
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#[=============================================================================[
2+
# FindLibXml2
3+
4+
This module overrides the upstream CMake `FindLibXml2` module with few
5+
customizations:
6+
7+
* Added LibXml2_VERSION result variable for CMake < 4.2.
8+
9+
See: https://cmake.org/cmake/help/latest/module/FindLibXml2.html
10+
#]=============================================================================]
11+
12+
# Find package with upstream CMake find module. Absolute path prevents the
13+
# maximum nesting/recursion depth error on some systems, like macOS.
14+
include(${CMAKE_ROOT}/Modules/FindLibXml2.cmake)
15+
16+
if(CMAKE_VERSION VERSION_LESS 4.2)
17+
set(LibXml2_VERSION "${LIBXML2_VERSION_STRING}")
18+
endif()
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#[=============================================================================[
2+
# FindPostgreSQL
3+
4+
This module overrides the upstream CMake `FindPostgreSQL` module with few
5+
customizations:
6+
7+
* Added PostgreSQL_VERSION result variable for CMake < 4.2.
8+
9+
See: https://cmake.org/cmake/help/latest/module/FindPostgreSQL.html
10+
#]=============================================================================]
11+
12+
# Find package with upstream CMake find module. Absolute path prevents the
13+
# maximum nesting/recursion depth error on some systems, like macOS.
14+
include(${CMAKE_ROOT}/Modules/FindPostgreSQL.cmake)
15+
16+
if(CMAKE_VERSION VERSION_LESS 4.2)
17+
set(PostgreSQL_VERSION "${PostgreSQL_VERSION_STRING}")
18+
endif()

cmake/ext/bz2/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ if(TARGET BZip2::BZip2)
9090
# the FILE definition. BZ2_bzerror() is available as of 1.0.0.
9191
block()
9292
set(headers "bzlib.h")
93-
if(BZIP2_VERSION VERSION_LESS 1.0.2)
93+
if(BZip2_VERSION VERSION_LESS 1.0.2)
9494
list(PREPEND headers "stdio.h")
9595
endif()
9696
check_symbol_exists(BZ2_bzerror "${headers}" PHP_EXT_BZ2_SANITY_CHECK)

cmake/ext/libxml/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ set_package_properties(
7676
)
7777

7878
# HAVE_WIN32_THREADS is not needed on newer libxml2 versions anymore.
79-
if(LIBXML2_VERSION_STRING VERSION_LESS 2.10)
79+
if(LibXml2_VERSION VERSION_LESS 2.10)
8080
target_compile_definitions(
8181
php_ext_libxml
8282
PRIVATE

cmake/ext/pdo_pgsql/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ if(TARGET PostgreSQL::PostgreSQL)
9797
endif()
9898

9999
# Available since PostgreSQL library version 12.
100-
if(PostgreSQL_VERSION_STRING VERSION_GREATER_EQUAL 12)
100+
if(PostgreSQL_VERSION VERSION_GREATER_EQUAL 12)
101101
check_symbol_exists(
102102
PQresultMemorySize
103103
libpq-fe.h
@@ -106,7 +106,7 @@ if(TARGET PostgreSQL::PostgreSQL)
106106
endif()
107107

108108
# Available since PostgreSQL library version 17.
109-
if(PostgreSQL_VERSION_STRING VERSION_GREATER_EQUAL 17)
109+
if(PostgreSQL_VERSION VERSION_GREATER_EQUAL 17)
110110
# Indicates the presence of PQclosePrepared, PQclosePortal, etc.
111111
check_symbol_exists(
112112
LIBPQ_HAS_CLOSE_PREPARED

cmake/ext/pgsql/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ if(TARGET PostgreSQL::PostgreSQL)
101101
endif()
102102

103103
# Available since PostgreSQL library version 12.
104-
if(PostgreSQL_VERSION_STRING VERSION_GREATER_EQUAL 12)
104+
if(PostgreSQL_VERSION VERSION_GREATER_EQUAL 12)
105105
check_symbol_exists(
106106
PQresultMemorySize
107107
libpq-fe.h
@@ -115,7 +115,7 @@ if(TARGET PostgreSQL::PostgreSQL)
115115
endif()
116116

117117
# Available since PostgreSQL library version 17.
118-
if(PostgreSQL_VERSION_STRING VERSION_GREATER_EQUAL 17)
118+
if(PostgreSQL_VERSION VERSION_GREATER_EQUAL 17)
119119
# Indicates the presence of PQchangePassword.
120120
check_symbol_exists(
121121
LIBPQ_HAS_CHANGE_PASSWORD
@@ -178,7 +178,7 @@ if(TARGET PostgreSQL::PostgreSQL)
178178
endif()
179179

180180
# Available since PostgreSQL library version 18.
181-
if(PostgreSQL_VERSION_STRING VERSION_GREATER_EQUAL 18)
181+
if(PostgreSQL_VERSION VERSION_GREATER_EQUAL 18)
182182
# Indicates the presence of PQservice.
183183
check_symbol_exists(
184184
PQservice

docs/cmake/modules/FindBZip2.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!-- This is auto-generated file. -->
2+
* Source code: [cmake/modules/FindBZip2.cmake](https://github.com/petk/php-build-system/blob/master/cmake/cmake/modules/FindBZip2.cmake)
3+
4+
# FindBZip2
5+
6+
This module overrides the upstream CMake `FindBZip2` module with few
7+
customizations:
8+
9+
* Added BZip2_VERSION result variable for CMake < 4.2.
10+
11+
See: https://cmake.org/cmake/help/latest/module/FindBZip2.html
12+
13+
## Customizing search locations
14+
15+
To customize where to look for the BZip2 package base
16+
installation directory, a common `CMAKE_PREFIX_PATH` or
17+
package-specific `BZIP2_ROOT` variable can be set at
18+
the configuration phase. For example:
19+
20+
```sh
21+
cmake -S <source-dir> \
22+
-B <build-dir> \
23+
-DCMAKE_PREFIX_PATH="/opt/BZip2;/opt/some-other-package"
24+
# or
25+
cmake -S <source-dir> \
26+
-B <build-dir> \
27+
-DBZIP2_ROOT=/opt/BZip2 \
28+
-DSOMEOTHERPACKAGE_ROOT=/opt/some-other-package
29+
```

docs/cmake/modules/FindLibXml2.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!-- This is auto-generated file. -->
2+
* Source code: [cmake/modules/FindLibXml2.cmake](https://github.com/petk/php-build-system/blob/master/cmake/cmake/modules/FindLibXml2.cmake)
3+
4+
# FindLibXml2
5+
6+
This module overrides the upstream CMake `FindLibXml2` module with few
7+
customizations:
8+
9+
* Added LibXml2_VERSION result variable for CMake < 4.2.
10+
11+
See: https://cmake.org/cmake/help/latest/module/FindLibXml2.html
12+
13+
## Customizing search locations
14+
15+
To customize where to look for the LibXml2 package base
16+
installation directory, a common `CMAKE_PREFIX_PATH` or
17+
package-specific `LIBXML2_ROOT` variable can be set at
18+
the configuration phase. For example:
19+
20+
```sh
21+
cmake -S <source-dir> \
22+
-B <build-dir> \
23+
-DCMAKE_PREFIX_PATH="/opt/LibXml2;/opt/some-other-package"
24+
# or
25+
cmake -S <source-dir> \
26+
-B <build-dir> \
27+
-DLIBXML2_ROOT=/opt/LibXml2 \
28+
-DSOMEOTHERPACKAGE_ROOT=/opt/some-other-package
29+
```
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!-- This is auto-generated file. -->
2+
* Source code: [cmake/modules/FindPostgreSQL.cmake](https://github.com/petk/php-build-system/blob/master/cmake/cmake/modules/FindPostgreSQL.cmake)
3+
4+
# FindPostgreSQL
5+
6+
This module overrides the upstream CMake `FindPostgreSQL` module with few
7+
customizations:
8+
9+
* Added PostgreSQL_VERSION result variable for CMake < 4.2.
10+
11+
See: https://cmake.org/cmake/help/latest/module/FindPostgreSQL.html
12+
13+
## Customizing search locations
14+
15+
To customize where to look for the PostgreSQL package base
16+
installation directory, a common `CMAKE_PREFIX_PATH` or
17+
package-specific `POSTGRESQL_ROOT` variable can be set at
18+
the configuration phase. For example:
19+
20+
```sh
21+
cmake -S <source-dir> \
22+
-B <build-dir> \
23+
-DCMAKE_PREFIX_PATH="/opt/PostgreSQL;/opt/some-other-package"
24+
# or
25+
cmake -S <source-dir> \
26+
-B <build-dir> \
27+
-DPOSTGRESQL_ROOT=/opt/PostgreSQL \
28+
-DSOMEOTHERPACKAGE_ROOT=/opt/some-other-package
29+
```

0 commit comments

Comments
 (0)