[LLVMdev] Why does cmake use LLVMBuild.txt to specify the LLVM-libs link order?
Sebastian Pop
spop at codeaurora.org
Thu Oct 31 14:55:36 PDT 2013
Greg Fitzgerald wrote:
> On Thu, Oct 31, 2013 at 12:17 PM, Sebastian Pop <spop at codeaurora.org> wrote:
> > Is there a reason to not use the cmake add_dependencies to establish the link
> > order of the LLVM libs instead of using the LLVMBuild.txt info?
>
> Have you tried `target_link_libraries`? The new CMake book has an
> example showing one static lib depending on another (page 25):
> `target_link_libraries(foo bar)` where `foo` uses symbols from `bar`.
Thanks Greg!
Adding extra dependences in cmake with target_link_libraries works
and simplifies a bit the patches I have submitted.
I'm still wondering why cmake uses LLVMBuild.txt at all...
Sebastian
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
More information about the llvm-dev
mailing list