This repository was archived by the owner on Sep 26, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ option(ENABLE_THREADED_RESOLVER "Set to ON to enable POSIX threaded DNS lookup"
9696option (ENABLE_DEBUG "Set to ON to enable curl debug features" OFF )
9797option (ENABLE_CURLDEBUG "Set to ON to build with TrackMemory feature enabled" OFF )
9898
99-
99+ option ( CURL_WITH_LIBIDN "Enable IDN" OFF )
100100
101101
102102
@@ -468,8 +468,10 @@ if(NOT CURL_DISABLE_LDAPS)
468468 check_include_file_concat ("ldapssl.h" HAVE_LDAPSSL_H )
469469endif ()
470470
471- # Check for idn
472- check_library_exists_concat ("idn" idna_to_ascii_lz HAVE_LIBIDN )
471+ if (CURL_WITH_LIBIDN)
472+ # Check for idn
473+ check_library_exists_concat ("idn" idna_to_ascii_lz HAVE_LIBIDN )
474+ endif ()
473475
474476# Check for symbol dlopen (same as HAVE_LIBDL)
475477check_library_exists ("${CURL_LIBS} " dlopen "" HAVE_DLOPEN )
@@ -1294,4 +1296,4 @@ set(CPACK_PACKAGE_RELEASE 1)
12941296set (CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME } -${CPACK_PACKAGE_VERSION} -${CPACK_PACKAGE_RELEASE} .${CMAKE_SYSTEM_PROCESSOR } " )
12951297
12961298set (CPACK_GENERATOR "TBZ2" )
1297- include (CPack )
1299+ include (CPack )
You can’t perform that action at this time.
0 commit comments