[PATCH] D44391: Export LLVM_DYLIB_COMPONENTS in LLVMConfig.cmake

Evangelos Foutras via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 12 14:44:45 PDT 2018


foutrelis added a comment.

This change seems to make llvm_config() usable for out-of-tree builds, neat! I tried a standalone build of LLDB and it works fine after having rebuilt llvm with this change.

It should also make the example given on llvm-dev <https://groups.google.com/d/msg/llvm-dev/YeEVe7HTasQ/-8DV66zaCAAJ> behave correctly, with one caveat:

This works:

  set(USE_SHARED USE_SHARED)
  llvm_config(foo support)

This doesn't (still chooses static libs):

  llvm_config(foo USE_SHARED support)

The above is driving me nuts! I don't know enough about CMake to figure it out myself. :(


Repository:
  rL LLVM

https://reviews.llvm.org/D44391





More information about the llvm-commits mailing list