[PATCH] D32668: CMake: Split static library exports into their own export file

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 31 12:33:31 PDT 2017


tstellar added a comment.

In https://reviews.llvm.org/D32668#769052, @beanz wrote:

> I want to echo @chapuni's question. What is the use case where a distribution would install the CMake modules and not install the LLVM component libraries? It doesn't seem to me that there is any reason to install the CMake modules to support `find_package` without also installing the static archives.


On Fedora, at least, packaging static libraries is discouraged, and applications usually link against libLLVM.so.  Tthe static libraries are split into their own package separate from the shared object.  Even with only libLLVM.so installed,   find_package(LLVM) is still useful  for getting the library / header paths for the LLVM installs.   Currently, even if you don't link against static libraries, you still need to install them in order for find_package(LLVM) to work, which is a little confusing for users.


https://reviews.llvm.org/D32668





More information about the llvm-commits mailing list