build, cmake: switch OPENSSL_CRYPTO_LIBRARY -> OPENSSL_CRYPTO_LIBRARIES
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Fri, 29 Oct 2021 08:54:44 +0000 (11:54 +0300)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 4 Nov 2021 06:17:24 +0000 (07:17 +0100)
commitf4d126316457345fdf9d6868cda0a33bcf4368c6
treea50d6ecf840de7423b72d288a31199585c6d69ca
parentcd3f6ee42e5c60d55b02e2bbad3db217c77e66ce
build, cmake: switch OPENSSL_CRYPTO_LIBRARY -> OPENSSL_CRYPTO_LIBRARIES

OPENSSL_CRYPTO_LIBRARY returns just the full path to libcrypto.a
OPENSSL_CRYPTO_LIBRARIES returns also any other libraries required to fully
link an executable with libcrypto.a. This can be -lpthread, or -ldl, or
something else.

The FindOpenSSL.cmake module does a good job of identifying these dependent
libs, but the OPENSSL_CRYPTO_LIBRARIES variable must be used (same as using
ZLIB_LIBRARIES).

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Reviewed-by: Petr Štetiar <ynezz@true.cz>
CMakeLists.txt