Skip to content

Commit e3af3db

Browse files
committed
Merge branch 'PHP-8.5'
2 parents 1aef08d + 6e06c29 commit e3af3db

File tree

5 files changed

+22
-5
lines changed

5 files changed

+22
-5
lines changed

cmake/CMakeLists.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,14 @@ install(
253253
PATTERN "FindPHP.cmake" EXCLUDE
254254
)
255255

256-
set(CMAKE_EXPERIMENTAL_EXPORT_PACKAGE_INFO "b80be207-778e-46ba-8080-b23bba22639e")
256+
if(PHP_ENABLE_CMAKE_EXPERIMENTAL_FEATURES)
257+
set(CMAKE_EXPERIMENTAL_EXPORT_PACKAGE_INFO "b80be207-778e-46ba-8080-b23bba22639e")
257258

258-
install(
259-
PACKAGE_INFO PHP
260-
EXPORT php_development_export
261-
)
259+
install(
260+
PACKAGE_INFO PHP
261+
EXPORT php_development_export
262+
)
263+
endif()
262264

263265
################################################################################
264266
# Enable testing and configure test settings.

cmake/cmake/Configuration.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ set(
7272
)
7373
mark_as_advanced(PHP_BUILD_PROVIDER)
7474

75+
option(
76+
PHP_ENABLE_CMAKE_EXPERIMENTAL_FEATURES
77+
"Enable CMake experimental features"
78+
)
79+
mark_as_advanced(PHP_ENABLE_CMAKE_EXPERIMENTAL_FEATURES)
80+
7581
set(
7682
CACHE{PHP_INCLUDE_PREFIX}
7783
TYPE STRING

cmake/cmake/presets/all-enabled.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"binaryDir": "${sourceDir}/php-build/all-enabled",
99
"installDir": "/tmp",
1010
"cacheVariables": {
11+
"PHP_ENABLE_CMAKE_EXPERIMENTAL_FEATURES": true,
1112
"PHP_PEAR": true,
1213

1314
"PHP_EXT_BCMATH": true,

docs/cmake/configuration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ Some useful overridable configuration options built into CMake itself. All these
197197
* [`PHP_DEFAULT_SHORT_OPEN_TAG`](/docs/cmake/variables/PHP_DEFAULT_SHORT_OPEN_TAG.md)
198198
* [`PHP_DMALLOC`](/docs/cmake/variables/PHP_DMALLOC.md)
199199
* [`PHP_DTRACE`](/docs/cmake/variables/PHP_DTRACE.md)
200+
* [`PHP_ENABLE_CMAKE_EXPERIMENTAL_FEATURES`](/docs/cmake/variables/PHP_ENABLE_CMAKE_EXPERIMENTAL_FEATURES.md)
200201
* [`PHP_GCOV`](/docs/cmake/variables/PHP_GCOV.md)
201202
* [`PHP_MEMORY_SANITIZER`](/docs/cmake/variables/_PHP_MEMORY_SANITIZER.md)
202203
* [`PHP_EXTENSION_DIR`](/docs/cmake/variables/PHP_EXTENSION_DIR.md)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# `PHP_ENABLE_CMAKE_EXPERIMENTAL_FEATURES`
2+
3+
* Default: `OFF`
4+
* Values: `ON|OFF`
5+
6+
Enables CMake experimental features, such as exported
7+
[CPS](https://cps-org.github.io/cps/) file to be installed.

0 commit comments

Comments
 (0)