Skip to content

Commit

Permalink
libgit2: only define APPLESECURITY when on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Mar 25, 2018
1 parent 1703731 commit 0b2e151
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plugins/thirdParty/libgit2/CMakeLists.txt
Expand Up @@ -100,6 +100,10 @@ else()
set(DEFINE_STATIC_CRT_ARG -DSTATIC_CRT=OFF)
endif()

if(APPLE)
set(DEFINE_APPLESECURITY_ARG -DAPPLESECURITY=OFF)
endif()

# Build libgit2 as an external project

set(PACKAGE_BUILD ${PACKAGE_NAME}Build)
Expand All @@ -118,11 +122,11 @@ else()
CMAKE_GENERATOR
${CMAKE_GENERATOR}
CMAKE_ARGS
-DAPPLESECURITY=OFF
-DBUILD_CLAR=OFF
${CMAKE_ARGS}
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
${DEFINE_APPLESECURITY_ARG}
${DEFINE_STATIC_CRT_ARG}
-DOPENSSL_CRYPTO_LIBRARY=${OPENSSL_CRYPTO_LIBRARY}
-DOPENSSL_ROOT_DIR=${OPENSSL_ROOT_DIR}
Expand Down

0 comments on commit 0b2e151

Please sign in to comment.