Skip to content

Commit e604ade

Browse files
committed
Add more modules to bin/check-cmake.php and update docs comments
1 parent d0ed7b0 commit e604ade

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ After configuration and generation phase is complete, PHP can be built by:
4242
and the built PHP binary should be then ready to run:
4343
<build-dir>/php/sapi/cli/php -v
4444
45+
PHP configuration can be also specified with the CMake presets:
46+
47+
cmake --preset <preset>
48+
49+
For example:
50+
51+
cmake --preset all-enabled
52+
cmake --build --preset all-enabled -j
53+
4554
See build system documentation for available PHP configuration variables and
4655
further information.
4756
#]=============================================================================]

bin/check-cmake.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ function getProjectModules(): array
160160
'CheckTypeSize' => ['check_type_size'],
161161
'CheckVariableExists' => ['check_variable_exists'],
162162
'CMakeDependentOption' => ['cmake_dependent_option'],
163+
'CMakeFindDependencyMacro' => ['find_dependency'],
163164
'CMakePackageConfigHelpers' => [
164165
'configure_package_config_file',
165166
'generate_apple_architecture_selection_file',
@@ -195,6 +196,7 @@ function getProjectModules(): array
195196
'find_package_handle_standard_args',
196197
],
197198
'FindPackageMessage' => ['find_package_message'],
199+
'GenerateExportHeader' => ['generate_export_header'],
198200
'ProcessorCount' => ['processorcount'],
199201
'PHP/AddCustomCommand' => ['php_add_custom_command'],
200202
'PHP/Bison' => ['php_bison', '/find_package\([\n ]*BISON/'],

0 commit comments

Comments
 (0)