================
@@ -15,6 +15,10 @@ add_llvm_tool(llvm-strings
   StringsOptsTableGen
   )
 
+if(APPLE)
+  target_link_libraries(llvm-strings PRIVATE iconv)
+endif()
+
----------------
lukel97 wrote:

This is hardcoding the library which still breaks on macOS if you have both the 
system and another GNU libiconv installed, from e.g. macports or homebrew. 
`#include <iconv.h>` will include the headers from the package manager but this 
CMake line will link the system library. It should use find_package so the 
include + link flags use the same library. 

https://github.com/llvm/llvm-project/pull/221794
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to