[LLVMdev] Adding a library to CMake deps

Renato Golin renato.golin at linaro.org
Tue Sep 3 05:13:59 PDT 2013

Hi folks,

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).

I couldn't find the place to add -llzma into the deps, and the only mention
of libxml2 is in config-ix.cmake:

endif ()

Which I could do the same with lzma? Any ideas on what the problem is, and
possibly how to fix it?


PS: The work around is to edit the build.ninja file manually after CMake
runs, but that's sub-optimal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130903/f0243d2f/attachment.html>

More information about the llvm-dev mailing list