Skip to content

Commit 66e25a5

Browse files
committed
Update docs
1 parent aad7023 commit 66e25a5

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/cmake-modules/PHP/SAPIs.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# PHP/SAPIs
2+
3+
See: [SAPIs.cmake](https://github.com/petk/php-build-system/tree/master/cmake/cmake/modules/PHP/SAPIs.cmake)
4+
5+
Add subdirectories of PHP SAPIs via `add_subdirectory()`.
6+
7+
This module is responsible for traversing `CMakeLists.txt` files of PHP SAPIs
8+
and adding them via `add_subdirectory()`.
9+
10+
## Exposed macro
11+
12+
```cmake
13+
php_sapis_add(subdirectory)
14+
```
15+
16+
## Custom CMake properties
17+
18+
* `PHP_ALL_SAPIS`
19+
20+
Global property with a list of all PHP SAPIs in the sapi directory.
21+
22+
* `PHP_SAPIS`
23+
24+
This global property contains a list of all enabled PHP SAPIs for the current
25+
configuration.

0 commit comments

Comments
 (0)