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(
144
144
$< $< COMPILE_LANGUAGE:C,CXX> :/FD>
145
145
)
146
146
147
+ # Add common libraries to PHP Windows core DLL library and shared extensions.
148
+ add_library (php_windows_common_libs INTERFACE GLOBAL )
147
149
target_link_libraries (
148
- php_config
150
+ php_windows_common_libs
149
151
INTERFACE
150
152
advapi32
151
153
bcrypt
@@ -157,6 +159,12 @@ target_link_libraries(
157
159
user32
158
160
ws2_32
159
161
)
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 )
160
168
161
169
target_link_libraries (php_core INTERFACE PHP::windows )
162
170
You can’t perform that action at this time.
0 commit comments