Re: Want to build monolithic libssh2.dll on Windows (preferably Win32 and Win64) but no real success so far
On Thu, 3 Nov 2016, 16:09 Jeroen Wiert Pluimers, <jeroen.pluimers.com+
> On Thu, Nov 3, 2016 at 1:36 PM, Alexander Lamaison <swish_at_lammy.co.uk>
> I notice you tried to link statically against OpenSSL from slproweb. I'm
> not sure they contain static libs for Visual Studio 2015 (or at all), so
> you might need to compile your own. FWIW, I use the hunter package manager
> to compile everything into a monolithic binary:
> They slprobweb downloads contain static libs and are in fact recommended
> at the top of the list https://wiki.openssl.org/index.php/Binaries
But when you built libssh2 for OpenSSL and passed
OPENSSL_USE_STATIC_LIBS=ON to CMake, it still linked dynamically? If so
that is either a bug in CMake's FindOpenSSL.cmake, or the static libs in
slproweb are not for Visual Studio 2015.
> Any steps on how to get started with hunter (not wanting to re-invent the
> wheel again).
You just include the huntergate snippet in your root CMakeLists.txt and add
a call to hunter_add_package for each package you use via find_package.
Then run CMake. It will download and install everything. I.e add
Received on 2016-11-03