File tree Expand file tree Collapse file tree 10 files changed +32
-7
lines changed Expand file tree Collapse file tree 10 files changed +32
-7
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ mark_as_advanced(ZEND_MAX_EXECUTION_TIMERS)
7878# Add library.
7979################################################################################
8080
81- add_library (zend STATIC )
81+ add_library (zend OBJECT )
8282add_library (Zend::Zend ALIAS zend)
8383
8484file (GLOB _zend_headers ${CMAKE_CURRENT_SOURCE_DIR} /*.h)
Original file line number Diff line number Diff line change @@ -125,7 +125,6 @@ target_link_libraries(
125125 # Link publicly for PHP SAPIs.
126126 PUBLIC
127127 PHP::configuration
128- Zend::Zend
129128)
130129
131130if (TARGET PHP::win32 )
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ target_link_libraries(
8888 php_apache2handler
8989 PRIVATE
9090 PHP::main
91+ Zend::Zend
9192 Apache::Apache
9293)
9394
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ target_link_libraries(
2828 php_cgi
2929 PRIVATE
3030 PHP::main
31+ Zend::Zend
3132 $<$<PLATFORM_ID:Windows>:ws2_32;kernel32;advapi32>
3233)
3334
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ target_link_libraries(
8282 php_cli
8383 PRIVATE
8484 PHP::main
85+ Zend::Zend
8586 $<$<PLATFORM_ID:Windows>:ws2_32;shell32>
8687)
8788
@@ -132,6 +133,7 @@ if(SAPI_CLI_WIN_NO_CONSOLE)
132133 php_cli_win_no_console
133134 PRIVATE
134135 PHP::main
136+ Zend::Zend
135137 shell32
136138 )
137139
Original file line number Diff line number Diff line change @@ -29,7 +29,12 @@ target_sources(
2929 php_embed.h
3030)
3131
32- target_link_libraries (php_embed PRIVATE PHP::main)
32+ target_link_libraries (
33+ php_embed
34+ PRIVATE
35+ PHP::main
36+ Zend::Zend
37+ )
3338
3439target_compile_definitions (php_embed PRIVATE ZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
3540
Original file line number Diff line number Diff line change @@ -153,7 +153,12 @@ target_include_directories(
153153
154154target_compile_definitions (php_fpm PRIVATE ZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
155155
156- target_link_libraries (php_fpm PRIVATE PHP::main)
156+ target_link_libraries (
157+ php_fpm
158+ PRIVATE
159+ PHP::main
160+ Zend::Zend
161+ )
157162
158163set_target_properties (
159164 php_fpm
Original file line number Diff line number Diff line change @@ -118,6 +118,11 @@ set_target_properties(
118118 OUTPUT_NAME ${PHP_PROGRAM_PREFIX} fuzzer${PHP_PROGRAM_SUFFIX}
119119)
120120
121- target_link_libraries (php_fuzzer PRIVATE PHP::main)
121+ target_link_libraries (
122+ php_fuzzer
123+ PRIVATE
124+ PHP::main
125+ Zend::Zend
126+ )
122127
123128install (TARGETS php_fuzzer RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
Original file line number Diff line number Diff line change @@ -27,7 +27,12 @@ add_executable(php_litespeed
2727 lsapilib.c
2828)
2929
30- target_link_libraries (php_litespeed PRIVATE PHP::main)
30+ target_link_libraries (
31+ php_litespeed
32+ PRIVATE
33+ PHP::main
34+ Zend::Zend
35+ )
3136
3237set_target_properties (
3338 php_litespeed
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ target_link_libraries(
9595 php_phpdbg
9696 PRIVATE
9797 PHP::main
98+ Zend::Zend
9899 $<$<PLATFORM_ID:Windows>:ws2_32;user32>
99100)
100101
@@ -176,7 +177,8 @@ if(SAPI_PHPDBG_SHARED)
176177 php_phpdbg_shared
177178 PRIVATE
178179 # TODO: fix this better in the future (building with -fPIC etc).
179- #PHP::main
180+ PHP::main
181+ Zend::Zend
180182 $<$<PLATFORM_ID:Windows>:ws2_32;user32>
181183 )
182184endif ()
You can’t perform that action at this time.
0 commit comments