diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-10-23 11:47:33 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-23 11:51:21 -0400 |
commit | d839392bb6ec3fb13b35d72ef346def18561167b (patch) | |
tree | 7c66cbde70e7c1d24193b968336d0885cd225e48 | |
parent | 344d9765936012701d72e33d1e8c005cf5941f9d (diff) | |
download | subsurface-d839392bb6ec3fb13b35d72ef346def18561167b.tar.gz |
Mac build: don't force link against OpenSSL
libgit2 uses native SSL / crypto on Darwin/macOS.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | cmake/Modules/FindLIBGIT2.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/Modules/FindLIBGIT2.cmake b/cmake/Modules/FindLIBGIT2.cmake index da51cc497..e6354ab73 100644 --- a/cmake/Modules/FindLIBGIT2.cmake +++ b/cmake/Modules/FindLIBGIT2.cmake @@ -37,7 +37,11 @@ HINTS /usr/local/include /usr/include ) -SET(LIBGIT2_LIBRARIES ${LIBGIT2_LIBRARIES} -lssl -lcrypto) +if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") + SET(LIBGIT2_LIBRARIES ${LIBGIT2_LIBRARIES}) +else() + SET(LIBGIT2_LIBRARIES ${LIBGIT2_LIBRARIES} -lssl -lcrypto) +endif() INCLUDE( FindPackageHandleStandardArgs ) FIND_PACKAGE_HANDLE_STANDARD_ARGS( git2 DEFAULT_MSG LIBGIT2_INCLUDE_DIR LIBGIT2_LIBRARIES ) |