Skip to content

Commit e96473b

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
2 parents c905c0c + ae5a917 commit e96473b

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
@@ -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)
163163
set_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

173173
if(TARGET OpenSSL::SSL)
174174
cmake_push_check_state(RESET)

0 commit comments

Comments
 (0)