[cmake-developers] [PATCH] FindOpenSSL: Fix detection of OpenSSL 1.1 w/ MSVC

Alexis Murzeau amubtdx at outlook.fr
Mon Aug 29 14:55:43 EDT 2016


NAMES_PER_DIR is enabled on find_library, and having multiples names
in the same directory is unlikely but might happen when installing a
newer openssl over an old one I think.

I will change to this :
+        libssl${_OPENSSL_MSVC_ARCH_SUFFIX}${_OPENSSL_MSVC_RT_MODE}
+        libssl
         ssleay32${_OPENSSL_MSVC_RT_MODE}
         ssleay32
         ssl

Also, I didn't see the intel case in FindOpenSSL.cmake, it also need
changes as it actually only search for ssleay32 and libeay32.

Alexis

2016-08-28 23:18 GMT+02:00 Craig Scott <craig.scott at crascit.com>:
> In that patch, the old names are listed before the new names, so if both
> exist on the system, the older version would be found first. Would it be
> preferable instead to swap the order to give preference to the newer version
> in such a scenario?
>
> --
> Craig Scott
> Melbourne, Australia
> http://crascit.com


More information about the cmake-developers mailing list