+if (APPLE)
+ if (LIBXML2_LIBRARY MATCHES "^/usr/lib/.*")
+ message(FATAL_ERROR "Use of macOS's internal libxml2 dynamic library is not allowed.")
+ endif()
+endif()
+
+if(NOT APPLE)
+ find_package(Iconv REQUIRED)
+ include_directories(${Iconv_INCLUDE_DIR})
+endif()