-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Description
Reproduction steps
SET LIBSSH2_SRC=D:\src\libssh2
SET LIBSSH2=D:\var\
SET LIBGIT2_SRC=d:\src\libgit2
SET LIBGIT2=D:\var\
git clone --depth=1 -b libssh2-1.9.0 https://github.com/libssh2/libssh2.git %LIBSSH2_SRC% 2>NUL
PUSHD %LIBSSH2_SRC%
cmake -DCRYPTO_BACKEND=WinCNG -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=%LIBSSH2%
cmake --build . --target install
POPD
git clone --depth=1 -b v1.1.1 https://github.com/libgit2/libgit2.git %LIBGIT2_SRC% 2>NUL
PUSHD %LIBGIT2_SRC%
set CMAKE_INCLUDE_PATH=%LIBSSH2%/include
set CMAKE_LIBRARY_PATH=%LIBSSH2%/lib
cmake . -DBUILD_CLAR=OFF -DCMAKE_BUILD_TYPE=Release -DEMBED_SSH_PATH=%LIBSSH2% -DCMAKE_INSTALL_PREFIX="%LIBGIT2%" -G %GENERATOR%
cmake --build . --target install
POPD
Expected behavior
Should compile
Actual behavior
-- Found libssh2, version 1.9.0
CMake Error at cmake/FindPkgLibraries.cmake:17 (MESSAGE):
could not resolve ssh2
Build log: libgit2.build.log
Version of libgit2 (release number or SHA1)
v.1.1.1 also tested with v1.0.0
Operating system(s) tested
Windows - 10.0.19042 - AMD64
Microsoft Visual Studio 2019
CMAKE_C_COMPILER "D:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe"
CMAKE_C_COMPILER_ARG1 ""
CMAKE_C_COMPILER_ID "MSVC"
CMAKE_C_COMPILER_VERSION "19.29.30038.1"
Metadata
Metadata
Assignees
Labels
No labels