Skip to content

Commit 191dfce

Browse files
committed
Merge branch 'PHP-8.4'
2 parents 87ebf43 + e96473b commit 191dfce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmake/ext/ftp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ target_sources(
8484
)
8585

8686
if(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

cmake/ext/openssl/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)
166166
set_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

176176
if(TARGET OpenSSL::SSL)
177177
cmake_push_check_state(RESET)

0 commit comments

Comments
 (0)