File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -144,8 +144,10 @@ target_compile_options(
144144 $<$<COMPILE_LANGUAGE:C,CXX>:/FD>
145145)
146146
147+ # Add common libraries to PHP Windows core DLL library and shared extensions.
148+ add_library (php_windows_common_libs INTERFACE GLOBAL )
147149target_link_libraries (
148- php_config
150+ php_windows_common_libs
149151 INTERFACE
150152 advapi32
151153 bcrypt
@@ -157,6 +159,12 @@ target_link_libraries(
157159 user32
158160 ws2_32
159161)
162+ target_link_libraries (
163+ php_config
164+ INTERFACE
165+ $<$<AND :$<BOOL :$<TARGET_PROPERTY:PHP_EXTENSION>>,$<IN_LIST :$<TARGET_PROPERTY:TYPE >,MODULE_LIBRARY;SHARED_LIBRARY>>:php_windows_common_libs>
166+ )
167+ target_link_libraries (php_windows PRIVATE php_windows_common_libs)
160168
161169target_link_libraries (php_core INTERFACE PHP::windows)
162170
You can’t perform that action at this time.
0 commit comments