From d839392bb6ec3fb13b35d72ef346def18561167b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 23 Oct 2017 11:47:33 -0400 Subject: Mac build: don't force link against OpenSSL libgit2 uses native SSL / crypto on Darwin/macOS. Signed-off-by: Dirk Hohndel --- cmake/Modules/FindLIBGIT2.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cmake/Modules') 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 ) -- cgit v1.2.3-70-g09d2