21 lines
745 B
CMake
21 lines
745 B
CMake
include(FetchContent)
|
|
|
|
# This revision includes the published SFTP security fixes after the 1.11.1 release.
|
|
FetchContent_Declare(kswitcher_libssh2
|
|
URL https://codeload.github.com/libssh2/libssh2/tar.gz/dd1546700d0ed8ff7138bc1ccc288286fb3ab2b4
|
|
URL_HASH SHA256=67d20d434055faef76439c6829ab253c892fcdd68d9a9c86cf5824bd8366e6eb
|
|
DOWNLOAD_EXTRACT_TIMESTAMP TRUE)
|
|
|
|
function(kswitcher_add_ssh_library)
|
|
set(BUILD_STATIC_LIBS ON)
|
|
set(BUILD_SHARED_LIBS OFF)
|
|
set(BUILD_EXAMPLES OFF)
|
|
set(BUILD_TESTING OFF)
|
|
set(LIBSSH2_DISABLE_INSTALL ON)
|
|
set(LIBSSH2_BUILD_DOCS OFF)
|
|
set(CRYPTO_BACKEND WinCNG)
|
|
set(ENABLE_ECDSA_WINCNG ON)
|
|
FetchContent_MakeAvailable(kswitcher_libssh2)
|
|
endfunction()
|
|
kswitcher_add_ssh_library()
|