summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-01-14 10:23:38 -0600
committerEdward Thomson <ethomson@edwardthomson.com>2015-01-14 10:23:38 -0600
commita93acf916936ee62664f1ff54842b2b4165951ae (patch)
treeeab989060092c9a972fbb7c6f457c18750d9869d
parent85880693d53d401aac71705fe55c406b82de6f0d (diff)
parent7641327c8bc4876556d3fd9a182aa4a10a60e838 (diff)
downloadlibgit2-a93acf916936ee62664f1ff54842b2b4165951ae.tar.gz
Merge pull request #2818 from leoyanggit/openssl_option
Add option to turn off OpenSSL
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b4d42e060..a0f01bbb5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,6 +35,7 @@ OPTION( LIBGIT2_FILENAME "Name of the produced binary" OFF )
OPTION( ANDROID "Build for android NDK" OFF )
+OPTION( USE_OPENSSL "Link with and use openssl library" ON )
OPTION( USE_ICONV "Link with and use iconv library" OFF )
OPTION( USE_SSH "Link with libssh to enable SSH support" ON )
OPTION( USE_GSSAPI "Link with libgssapi for SPNEGO auth" OFF )
@@ -152,7 +153,7 @@ IF (WIN32 AND WINHTTP AND NOT MINGW)
INCLUDE_DIRECTORIES(deps/http-parser)
FILE(GLOB SRC_HTTP deps/http-parser/*.c deps/http-parser/*.h)
ELSE ()
- IF (NOT AMIGA)
+ IF (NOT AMIGA AND USE_OPENSSL)
FIND_PACKAGE(OpenSSL)
ENDIF ()