File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed
Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 7272)
7373mark_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+
7581set (
7682 CACHE {PHP_INCLUDE_PREFIX}
7783 TYPE STRING
Original file line number Diff line number Diff line change 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 ,
You can’t perform that action at this time.
0 commit comments