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 @@ -159,7 +159,7 @@ target_sources(
159159 xp_ssl.c
160160)
161161
162- find_package (OpenSSL ${PHP_OPENSSL_MIN_VERSION} )
162+ find_package (OpenSSL ${PHP_OPENSSL_MIN_VERSION} COMPONENTS SSL )
163163set_package_properties(
164164 OpenSSL
165165 PROPERTIES
@@ -168,7 +168,7 @@ set_package_properties(
168168)
169169
170170# Link publicly for internal_functions files.
171- target_link_libraries (php_ext_openssl PUBLIC OpenSSL::SSL OpenSSL::Crypto )
171+ target_link_libraries (php_ext_openssl PRIVATE OpenSSL::SSL)
172172
173173if (TARGET OpenSSL::SSL)
174174 cmake_push_check_state(RESET)
You can’t perform that action at this time.
0 commit comments