summaryrefslogtreecommitdiffstats
path: root/cmake/Modules/HandleFindGit2.cmake
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-03 13:48:54 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-03 13:48:54 -0700
commit096682cd942f4dcc42a6f40edff85c28720e75bc (patch)
tree17363cb719f5d80513e0a4cf4b87206bf17f6f09 /cmake/Modules/HandleFindGit2.cmake
parent60123515b64c5c8262401cf55120e7ac9399fa9d (diff)
downloadsubsurface-096682cd942f4dcc42a6f40edff85c28720e75bc.tar.gz
Whitespace
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'cmake/Modules/HandleFindGit2.cmake')
-rw-r--r--cmake/Modules/HandleFindGit2.cmake42
1 files changed, 21 insertions, 21 deletions
diff --git a/cmake/Modules/HandleFindGit2.cmake b/cmake/Modules/HandleFindGit2.cmake
index 63cd4047c..63877c9e1 100644
--- a/cmake/Modules/HandleFindGit2.cmake
+++ b/cmake/Modules/HandleFindGit2.cmake
@@ -2,35 +2,35 @@
if(LIBGIT2_FROM_PKGCONFIG)
pkg_config_library(LIBGIT2 libgit2 REQUIRED)
set(LIBGIT2_LIBRARIES "")
- if(ANDROID)
- # for Android we need to force a static link against ssl and crypto
- # this is a bit hacky, but it seems to work
- set(LIBGIT2_LIBRARIES ${LIBGIT2_LIBRARIES} ${LIBGIT2_LIBRARY_DIRS}/libssl.a ${LIBGIT2_LIBRARY_DIRS}/libcrypto.a)
- endif()
- if(FORCE_LIBSSH)
- pkg_config_library(LIBSSH2 libssh2 REQUIRED)
- set(LIBGIT2_LIBRARIES ${LIBGIT2_LIBRARIES} ${LIBSSH2_LIBRARIES} -lcrypto)
- endif()
+ if(ANDROID)
+ # for Android we need to force a static link against ssl and crypto
+ # this is a bit hacky, but it seems to work
+ set(LIBGIT2_LIBRARIES ${LIBGIT2_LIBRARIES} ${LIBGIT2_LIBRARY_DIRS}/libssl.a ${LIBGIT2_LIBRARY_DIRS}/libcrypto.a)
+ endif()
+ if(FORCE_LIBSSH)
+ pkg_config_library(LIBSSH2 libssh2 REQUIRED)
+ set(LIBGIT2_LIBRARIES ${LIBGIT2_LIBRARIES} ${LIBSSH2_LIBRARIES} -lcrypto)
+ endif()
else()
find_package(LIBGIT2 REQUIRED)
include_directories(${LIBGIT2_INCLUDE_DIR})
- if(FORCE_LIBSSH)
- find_package(Libssh2 QUIET CONFIG)
+ if(FORCE_LIBSSH)
+ find_package(Libssh2 QUIET CONFIG)
if ("${LIBSSH2_VERSION}" STRLESS "1.7" AND "${LIBSSH2_VERSION}" STRGREATER "1.6.1")
- set(LIBSSH2_LIBRARIES Libssh2::libssh2)
- endif()
+ set(LIBSSH2_LIBRARIES Libssh2::libssh2)
+ endif()
# at least on my Mac I get the mixed case variable instead...
if(Libssh2_FOUND)
set(LIBSSH2_FOUND ${Libssh2_FOUND})
endif()
- if(!LIBSSH2_FOUND OR "${LIBSSH2_FOUND}" STREQUAL "")
- pkg_config_library(LIBSSH2 libssh2 REQUIRED)
- endif()
- endif()
- find_package(libcurl QUIET)
- if(!LIBCURL_FOUND OR "${LIBCURL_FOUND}" STREQUAL "")
- pkg_config_library(LIBCURL libcurl REQUIRED)
- endif()
+ if(!LIBSSH2_FOUND OR "${LIBSSH2_FOUND}" STREQUAL "")
+ pkg_config_library(LIBSSH2 libssh2 REQUIRED)
+ endif()
+ endif()
+ find_package(libcurl QUIET)
+ if(!LIBCURL_FOUND OR "${LIBCURL_FOUND}" STREQUAL "")
+ pkg_config_library(LIBCURL libcurl REQUIRED)
+ endif()
if("${LIBSSH2_LIBRARY_DIRS}" STREQUAL "")
set(LIBGIT2_LIBRARIES ${LIBGIT2_LIBRARIES} ${LIBSSH2_LIBRARIES} ${LIBCURL_LIBRARIES} -lcrypto)
else()