File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ target_sources(
8484)
8585
8686if (PHP_EXT_FTP_SSL OR PHP_EXT_OPENSSL)
87- find_package (OpenSSL ${PHP_OPENSSL_MIN_VERSION} )
87+ find_package (OpenSSL ${PHP_OPENSSL_MIN_VERSION} COMPONENTS SSL )
8888 set_package_properties(
8989 OpenSSL
9090 PROPERTIES
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ target_sources(
162162 xp_ssl.c
163163)
164164
165- find_package (OpenSSL ${PHP_OPENSSL_MIN_VERSION} )
165+ find_package (OpenSSL ${PHP_OPENSSL_MIN_VERSION} COMPONENTS SSL )
166166set_package_properties(
167167 OpenSSL
168168 PROPERTIES
@@ -171,7 +171,7 @@ set_package_properties(
171171)
172172
173173# Link publicly for internal_functions files.
174- target_link_libraries (php_ext_openssl PUBLIC OpenSSL::SSL OpenSSL::Crypto )
174+ target_link_libraries (php_ext_openssl PRIVATE OpenSSL::SSL)
175175
176176if (TARGET OpenSSL::SSL)
177177 cmake_push_check_state(RESET)
You can’t perform that action at this time.
0 commit comments