mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-10 03:56:58 +00:00
cmake: Add USE_SSH
option
This commit is contained in:
parent
a8baf4b160
commit
73291aff6e
@ -32,6 +32,8 @@ OPTION( LIBGIT2_FILENAME "Name of the produced binary" OFF )
|
|||||||
OPTION( ANDROID "Build for android NDK" OFF )
|
OPTION( ANDROID "Build for android NDK" OFF )
|
||||||
|
|
||||||
OPTION( USE_ICONV "Link with and use iconv library" OFF )
|
OPTION( USE_ICONV "Link with and use iconv library" OFF )
|
||||||
|
OPTION( USE_SSH "Link with libssh to enable SSH support" ON )
|
||||||
|
|
||||||
IF(APPLE)
|
IF(APPLE)
|
||||||
SET( USE_ICONV ON )
|
SET( USE_ICONV ON )
|
||||||
ENDIF()
|
ENDIF()
|
||||||
@ -186,7 +188,7 @@ ELSE()
|
|||||||
FILE(GLOB SRC_ZLIB deps/zlib/*.c deps/zlib/*.h)
|
FILE(GLOB SRC_ZLIB deps/zlib/*.c deps/zlib/*.h)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF (NOT MINGW)
|
IF (USE_SSH AND NOT MINGW)
|
||||||
FIND_PACKAGE(LIBSSH2 QUIET)
|
FIND_PACKAGE(LIBSSH2 QUIET)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
IF (LIBSSH2_FOUND)
|
IF (LIBSSH2_FOUND)
|
||||||
|
Loading…
Reference in New Issue
Block a user