mirror of
https://github.com/libssh2/libssh2.git
synced 2026-01-27 00:18:12 +03:00
a8dd5090d6828d29cb5e8075a931675db5b76e62
Fixes: ``` CMake Error at bld-libssh2/_pkg/lib/cmake/libssh2/libssh2-config.cmake:35 (add_library): add_library cannot create ALIAS target "libssh2::libssh2" because target "libssh2::libssh2_shared" is imported but not globally visible. Call Stack (most recent call first): CMakeLists.txt:27 (find_package) CMake Error at bld-libssh2/_pkg/lib/cmake/libssh2/libssh2-config.cmake:40 (add_library): add_library cannot create ALIAS target "Libssh2::libssh2" because target "libssh2::libssh2_shared" is imported but not globally visible. Call Stack (most recent call first): CMakeLists.txt:27 (find_package) ``` tests/cmake reproducer (requires #1581): ```shell export CMAKE_CONSUMER=/path/to/CMake-3.12.0/bin/cmake ./test.sh find_package ``` I don't understand what this error says, why it happens in certain CMake versions, and why a workaround is necessary for what seems like a standard export/consume configuration. This patch is based on internet suggestions and other projects ending up with this workaround. Ref: https://github.com/curl/curl/pull/16973 Ref: https://github.com/curl/curl/pull/17140 Cherry-picked from #1581 Closes #1587
libssh2 - SSH2 library
libssh2 is a library implementing the SSH2 protocol, available under the revised BSD license.
Installation instructions:
Description
libssh2 - это библиотека, реализующая протокол SSH2, доступная по пересмотренной лицензии BSD
Languages
C
84.8%
M4
3.6%
CMake
3.5%
Shell
2.6%
Perl
1.9%
Other
3.3%