Boost logo

Boost :

Subject: Re: [boost] Build: Trying to get Boost.Build toseemyOpenSSLonWindows
From: Paul Fultz II (pfultz2_at_[hidden])
Date: 2016-10-07 15:29:46


> On Oct 7, 2016, at 8:06 AM, Vinnie Falco <vinnie.falco_at_[hidden]> wrote:
>
> I just got CMake working to find my OpenSSL installation and let me
> tell you, it was a breeze. First of all you need to install OpenSSL
> for Windows. I used 1.0.2j. The 1.1.0 series doesn't work since they
> changed all the filenames around.
>
> Then you just add this line to your CMakeLists.txt:
> find_package(OpenSSL)
>
> WHAT!? That's it? Yeah. It should be this easy in a Jamfile. You can
> have both 32 and 64 bit OpenSSL libraries installed. And it correctly
> links against the debug libraries if you are building a debug
> executable.
>
> How does CMake do it? There's a nifty little program called
> FindOpenSSL. The source is here:
> https://github.com/Kitware/CMake/blob/master/Modules/FindOpenSSL.cmake

Unfortunately, its broken when using with pkgconfig on windows, with this:

if (UNIX)
   find_package(PkgConfig QUIET)
   pkg_check_modules(_OPENSSL QUIET openssl)
endif ()

It should try to find it with pkgconfig first and then fallback to guessing.

Paul


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk