File tree Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -534,6 +534,10 @@ else()
534534 option (LLVM_ENABLE_THREADS "Use threads if available." ON )
535535endif ()
536536
537+ set (LLVM_ENABLE_ICU "ON" CACHE STRING "Use ICU for character conversion support if available. Can be ON, OFF, or FORCE_ON" )
538+
539+ set (LLVM_ENABLE_ICONV "ON" CACHE STRING "Use iconv for character conversion support if available. Can be ON, OFF, or FORCE_ON" )
540+
537541set (LLVM_ENABLE_ZLIB "ON" CACHE STRING "Use zlib for compression/decompression if available. Can be ON, OFF, or FORCE_ON" )
538542
539543set (LLVM_ENABLE_ZSTD "ON" CACHE STRING "Use zstd for compression/decompression if available. Can be ON, OFF, or FORCE_ON" )
Original file line number Diff line number Diff line change @@ -258,19 +258,23 @@ else()
258258endif ()
259259
260260#Check for icu.
261- find_package (ICU COMPONENTS uc i18n)
262- if (ICU_FOUND)
263- set (HAVE_ICU 1)
264- else ()
265- set (HAVE_ICU 0)
261+ if (LLVM_ENABLE_ICU)
262+ find_package (ICU COMPONENTS uc i18n)
263+ if (ICU_FOUND)
264+ set (HAVE_ICU 1)
265+ else ()
266+ set (HAVE_ICU 0)
267+ endif ()
266268endif ()
267269
268270# Check for iconv.
269- find_package (Iconv)
270- if (Iconv_FOUND)
271- set (HAVE_ICONV 1)
272- else ()
273- set (HAVE_ICONV 0)
271+ if (LLVM_ENABLE_ICONV)
272+ find_package (Iconv)
273+ if (Iconv_FOUND)
274+ set (HAVE_ICONV 1)
275+ else ()
276+ set (HAVE_ICONV 0)
277+ endif ()
274278endif ()
275279
276280# function checks
You can’t perform that action at this time.
0 commit comments