blob: afd8935dc8934028bda486850b02ee22f004195e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--- libgit2-0.19.0/CMakeLists.txt
+++ libgit2-0.19.0/CMakeLists.txt
@@ -20,6 +20,7 @@
# Build options
#
OPTION( SONAME "Set the (SO)VERSION of the target" ON )
+OPTION( ENABLE_SSH "Enable SSH transport support" OFF )
OPTION( BUILD_SHARED_LIBS "Build Shared Library (OFF for Static)" ON )
OPTION( THREADSAFE "Build libgit2 as threadsafe" OFF )
OPTION( BUILD_CLAR "Build Tests using the Clar suite" ON )
@@ -151,10 +152,8 @@
FILE(GLOB SRC_ZLIB deps/zlib/*.c)
ENDIF()
-IF(NOT LIBSSH2_LIBRARY)
- FIND_PACKAGE(LIBSSH2 QUIET)
-ENDIF()
-IF (LIBSSH2_FOUND)
+IF(ENABLE_SSH)
+ FIND_PACKAGE(LIBSSH2 REQUIRED)
ADD_DEFINITIONS(-DGIT_SSH)
INCLUDE_DIRECTORIES(${LIBSSH2_INCLUDE_DIR})
SET(SSH_LIBRARIES ${LIBSSH2_LIBRARIES})
|