@@ -33,9 +33,7 @@ include(PHP/InterproceduralOptimization)
3333# Set CMAKE_POSITION_INDEPENDENT_CODE.
3434include (PHP/PositionIndependentCode)
3535
36- # INTERFACE library with usage requirements. All targets that need PHP compile
37- # or link properties, such as include directories, global compile definitions,
38- # or flags, should link to this target.
36+ # INTERFACE library with usage requirements.
3937add_library (php_configuration INTERFACE )
4038add_library (PHP::configuration ALIAS php_configuration)
4139target_include_directories (
@@ -45,12 +43,10 @@ target_include_directories(
4543 ${PHP_SOURCE_DIR}
4644)
4745
48- # INTERFACE library that ties all target objects and configuration together.
49- # Only PHP SAPI targets should link to it.
50- # See: https://cmake.org/cmake/help/latest/manual/cmake-buildsystem.7.html
51- add_library (php_sapis_config INTERFACE )
52- add_library (PHP::PHP ALIAS php_sapis_config)
53- target_link_libraries (php_sapis_config INTERFACE PHP::configuration )
46+ # INTERFACE library that ties objects and configuration together for PHP SAPIs.
47+ add_library (php_sapi INTERFACE )
48+ add_library (PHP::SAPI ALIAS php_sapi)
49+ target_link_libraries (php_sapi INTERFACE PHP::configuration )
5450
5551# Create a custom target for generating files (parsers, lexers, etc.) manually:
5652# cmake --build <dir> -t php_generate_files
0 commit comments