<div dir="ltr">Hi folks,<div><br></div><div>When cross-compiling LLVM to ARM, using CMake+Ninja, I realized that libxml2 depends on lzma, but the dependency is not explicit on the build.ninja file under the "build bin/c-index-test"'s LINK_LIBRARIES (which is the only one that cares about it).</div>
<div><br></div><div>I couldn't find the place to add -llzma into the deps, and the only mention of libxml2 is in config-ix.cmake:</div><div><br></div><div><div>find_package(LibXml2)</div><div>if (LIBXML2_FOUND)</div><div>
  set(CLANG_HAVE_LIBXML 1)</div><div>endif ()</div></div><div><br></div><div>Which I could do the same with lzma? Any ideas on what the problem is, and possibly how to fix it?</div><div><br></div><div>thanks,</div><div>--renato</div>
<div><br></div><div>PS: The work around is to edit the build.ninja file manually after CMake runs, but that's sub-optimal.</div></div>