[LLVMdev] Adding a library to CMake deps
renato.golin at linaro.org
Tue Sep 3 05:13:59 PDT 2013
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:
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...
More information about the llvm-dev