[PATCH] D74176: [CMake] Link against ZLIB::ZLIB

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 19 10:10:49 PST 2020


smeenai added a comment.

So with this, `llvm-config --system-libs` will print out `-lz` instead of the full path to the zlib library that was found. That's potentially not accurate in case you've set up your LLVM's CMake to find a different zlib than what `-lz` would find by default. On the other hand, it does mean you can use the `llvm-config --system-libs` output across systems, which is probably a more useful property.

libxml2 has the same issue as well, @hans (`llvm-config --system-libs` prints out an absolute path for it right now).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74176/new/

https://reviews.llvm.org/D74176





More information about the llvm-commits mailing list