Skip to content
This repository was archived by the owner on Sep 26, 2020. It is now read-only.

Commit 1db6016

Browse files
committed
Add option CURL_WITH_LIBIDN
1 parent 612d3d4 commit 1db6016

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ option(ENABLE_THREADED_RESOLVER "Set to ON to enable POSIX threaded DNS lookup"
9696
option(ENABLE_DEBUG "Set to ON to enable curl debug features" OFF)
9797
option(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)
469469
endif()
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)
475477
check_library_exists("${CURL_LIBS}" dlopen "" HAVE_DLOPEN)
@@ -1294,4 +1296,4 @@ set(CPACK_PACKAGE_RELEASE 1)
12941296
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_RELEASE}.${CMAKE_SYSTEM_PROCESSOR}")
12951297

12961298
set(CPACK_GENERATOR "TBZ2")
1297-
include(CPack)
1299+
include(CPack)

0 commit comments

Comments
 (0)