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 @@ -554,6 +554,10 @@ else()
554
554
option (LLVM_ENABLE_THREADS "Use threads if available." ON )
555
555
endif ()
556
556
557
+ set (LLVM_ENABLE_ICU "ON" CACHE STRING "Use ICU for character conversion support if available. Can be ON, OFF, or FORCE_ON" )
558
+
559
+ set (LLVM_ENABLE_ICONV "ON" CACHE STRING "Use iconv for character conversion support if available. Can be ON, OFF, or FORCE_ON" )
560
+
557
561
set (LLVM_ENABLE_ZLIB "ON" CACHE STRING "Use zlib for compression/decompression if available. Can be ON, OFF, or FORCE_ON" )
558
562
559
563
set (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()
258
258
endif ()
259
259
260
260
#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 ()
266
268
endif ()
267
269
268
270
# 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 ()
274
278
endif ()
275
279
276
280
# function checks
You can’t perform that action at this time.
0 commit comments