[PATCH] D47560: [CMake] Use find_package to find zlib
Pavel Labath via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 31 01:34:26 PDT 2018
labath added inline comments.
================
Comment at: llvm/lib/Support/CMakeLists.txt:3
+if ( HAVE_LIBZ )
set(system_libs ${system_libs} ${ZLIB_LIBRARIES})
endif()
----------------
What would be the new value of `ZLIB_LIBRARIES` here? One of my previous attempts to refactor this failed because we have code which assumes `system_libs` is a list bare library names `z dl ...` that can then be prefixed with `-l` and passed to the linker. This fails horribly if you specify a full path to a library (which cmake likes to to).
Please make sure that `llvm-config --system-libs` produces something reasonable after this patch.
Repository:
rL LLVM
https://reviews.llvm.org/D47560
More information about the llvm-commits
mailing list