FindOpenSSL's OPENSSL_USE_STATIC_LIBS has no effect on windows
When using the OPENSSL_USE_STATIC_LIBS flag on downstream project, I am able to link statically with OpenSSL on Linux and OSX without any issue.
However, on windows, the flag does not appear to have the expected effect. The outcome of find_package(OpenSSL REQUIRED)
provides the path to the import library libcrypto.lib
instead of libcrypto_static.lib
.
Found OpenSSL: path/to/libcrypto.lib
How can we force the use of libcrypto_static.lib
?
Edited by Sylvain Corlay