File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ OPTION( ENABLE_TRACE "Enables tracing support" OFF )
4343OPTION ( LIBGIT2_FILENAME "Name of the produced binary" OFF )
4444
4545OPTION ( USE_SHA1DC "Use SHA-1 with collision detection" OFF )
46- OPTION ( USE_ICONV "Link with and use iconv library" OFF )
4746OPTION ( USE_SSH "Link with libssh to enable SSH support" ON )
4847OPTION ( USE_HTTPS "Enable HTTPS support. Can be set to a specific backend" ON )
4948OPTION ( USE_GSSAPI "Link with libgssapi for SPNEGO auth" OFF )
@@ -52,10 +51,15 @@ OPTION( CURL "Use curl for HTTP if available" ON)
5251OPTION ( USE_EXT_HTTP_PARSER "Use system HTTP_Parser if available" ON )
5352OPTION ( DEBUG_POOL "Enable debug pool allocator" OFF )
5453OPTION ( ENABLE_WERROR "Enable compilation with -Werror" OFF )
54+ OPTION ( USE_BUNDLED_ZLIB "Use the bundled version of zlib" OFF )
55+
5556IF (UNIX AND NOT APPLE )
5657 OPTION ( ENABLE_REPRODUCIBLE_BUILDS "Enable reproducible builds" OFF )
5758ENDIF ()
58- OPTION ( USE_BUNDLED_ZLIB "Use the bundled version of zlib" OFF )
59+
60+ IF (APPLE )
61+ OPTION ( USE_ICONV "Link with and use iconv library" ON )
62+ ENDIF ()
5963
6064IF (MSVC )
6165 # This option is only available when building with MSVC. By default, libgit2
Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ ENDIF()
310310ADD_FEATURE_INFO(SPNEGO GIT_GSSAPI "SPNEGO authentication support" )
311311
312312# Optional external dependency: iconv
313- IF (USE_ICONV OR CMAKE_SYSTEM_NAME MATCHES "Darwin" )
313+ IF (USE_ICONV)
314314 FIND_PACKAGE (Iconv)
315315ENDIF ()
316316IF (ICONV_FOUND)
You can’t perform that action at this time.
0 commit comments