Micka in gmane.network.ssh.libssh2.devel (Mon, 18 Feb 2019 09:10:40
+0100):
>I tried with :
>
>cmake -DOPENSSL_ROOT_DIR="..\..\..\OpenSSL\source\vc-win32"
>-DOPENSSL_SSL_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib\libssl.lib"
>-DOPENSSL_CRYPTO_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib\libcrypto.lib"
>-DOPENSSL_INCLUDE_DIR="..\..\..\OpenSSL\source\vc-win32\include"
If libssl.lib & libcrypto.lib are in the lib-dir under the openssl root
and the include files in the include\openssl dir under the openssl root
cmake -DOPENSSL_ROOT_DIR="..\..\..\OpenSSL\source\vc-win32"
should be enough for cmake. Or use an absolute path like
cmake -DOPENSSL_ROOT_DIR="C:\Projects\OpenSSL\source\vc-win32"
The 'source' in your path rises the suspicion that OpenSSL is not
installed in ..\..\..\OpenSSL\source\vc-win32. CMake searches for an
installed OpenSSL. Expected files for a x86 build (the dll's end with
-x64.dll for x64)
OPENSSL_ROOT_DIR
|- lib\libssl.lib
|- lib\libcrypto.lib
|- include\openssl\ssl.h (and all the other header-files)
|- bin\libcrypto-1_1.dll (not needed for compiling)
|- bin\libssl-1_1.dll (not needed for compiling)
-- Jan _______________________________________________ libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2019-02-18