Skip to content
  • Alexis Murzeau's avatar
    FindOpenSSL: Fix detection of OpenSSL 1.1 Win32/64 · ed1758f8
    Alexis Murzeau authored and Brad King's avatar Brad King committed
    Since OpenSSL 1.1.0, Windows binaries are libcrypto and libssl instead of
    the old names libeay32 and ssleay32.
    When using MSVC, FindOpenSSL was searching for the old lib names only so
    this add the new names to be able to find OpenSSL 1.1.0 libraries.
    
    For example, the files in lib directory of OpenSSL 1.1.0 Win64 :
     - libcrypto.lib
     - libssl.lib
     - VC/libcrypto64MD.lib
     - VC/libcrypto64MDd.lib
     - VC/libcrypto64MT.lib
     - VC/libcrypto64MTd.lib
     - VC/libssl64MD.lib
     - VC/libssl64MDd.lib
     - VC/libssl64MT.lib
     - VC/libssl64MTd.lib
    
    32 bits OpenSSL has the same files with "32" instead of "64" for files in
    VC directory.
    
    MinGW still works and use lib/libcrypto.lib and lib/libssl.lib.
    
    This patch also add libssl and libcrypto for other windows compilers too (like
    Intel).
    ed1758f8