[llvm] Create a CharSetConverter class with both iconv and icu support (PR #74516)

Abhina Sree via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 26 08:26:35 PDT 2024


================
@@ -257,6 +257,26 @@ else()
   set(LLVM_ENABLE_TERMINFO 0)
 endif()
 
+#Check for icu.
+if(LLVM_ENABLE_ICU)
+  find_package(ICU COMPONENTS uc i18n)
----------------
abhina-sree wrote:

I looked into implementing this by setting the following cmake variable CMAKE_FIND_LIBRARY_SUFFIXES so that it will only find libraries ending in .so for ICU. Please let me know if there is a better way to do this. Thanks!

https://github.com/llvm/llvm-project/pull/74516


More information about the llvm-commits mailing list