On Thu, 3 Nov 2016, 16:09 Jeroen Wiert Pluimers, <jeroen.pluimers.com+ libssh2....@gmail.com> wrote:
> On Thu, Nov 3, 2016 at 1:36 PM, Alexander Lamaison <sw...@lammy.co.uk> > wrote: > > > 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: > https://github.com/ruslo/hunter > > > Thanks. > > 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 hunter_add_package(Libssh2).
_______________________________________________ libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel