mirror of
https://github.com/openssl/openssl.git
synced 2026-10-28 08:25:12 +08:00
exporters/cmake/OpenSSLConfig.cmake.in: Added missing crypto libs.
OPENSSL_LIBRARIES only exported OPENSSL_SSL_LIBRARIES, which can cause application link failures when libcrypto dependencies are not propagated through `target_link_libraries()`. Append `OPENSSL_CRYPTO_LIBRARIES` to ensure consumers linking against `OPENSSL_LIBRARIES` also receive the required crypto libraries. Fixes: https://github.com/openssl/openssl/issues/31318 Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Andrew Dinh <andrewd@openssl.org> Reviewed-by: Mounir Idrassi <mounir.idrassi@idrix.fr> Merge-date: Thu Aug 27 09:17:29 2026 Merged-from: https://github.com/openssl/openssl/pull/31363
This commit is contained in:
1 parent
6a7fec3fe5
commit
1b543af5e4
1 file changed
+1
-1
@@ -223,7 +223,7 @@ else()
|
||||
set(OPENSSL_CRYPTO_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY})
|
||||
set(OPENSSL_SSL_LIBRARY ${OPENSSL_LIBSSL_SHARED})
|
||||
set(OPENSSL_SSL_LIBRARIES ${OPENSSL_SSL_LIBRARY})
|
||||
set(OPENSSL_LIBRARIES ${OPENSSL_SSL_LIBRARIES})
|
||||
set(OPENSSL_LIBRARIES ${OPENSSL_SSL_LIBRARIES} ${OPENSSL_CRYPTO_LIBRARIES})
|
||||
{- output_on() if $lib_info{libcrypto}->{shared_import}; "" -}
|
||||
{- output_on() if $no_shared; "" -}
|
||||
endif()
|
||||
|
||||
Reference in new issue
Block a user