Problem of add system include path "/usr/include/libxml2" using Unreal Build Tool

Hi,
all

We have an legacy project that use libxml2 in iOS. In Xcode we manually add /usr/include/libxml2 in the “Header Search Paths”. With UBT we try as follow:

  1. Add “xml2” to PublicAdditionalLibraries as Module Facebook does, when compile there is an error “could not file file libxml/tree.h”.
  2. Then we add “/usr/include/libxml2” to PublicSystemIncluePaths, actually “/usr/include/libxml2” is an relative path of iOS SDK, so it not exists that CreateDirectoryHashSet check failed we skip the DIrectoryExists check.
  3. Then we use -iwithsysroot switch(with hard code) for “/usr/include/libxml2” .
    After that it works. But that we should modify the UBT code(and with hard code), is there another way we can include “/usr/include/libxml2” to our Header Search Paths?

Thanks.