[PATCH] D39002: [cmake] Use find_package to discover zlib
Vassil Vassilev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 17 14:11:57 PDT 2017
v.g.vassilev added a comment.
I assume this would fix it:
find_package(ZLIB)
if (ZLIB_FOUND)
set(HAVE_LIBZ 1)
else()
check_library_exists(z compress2 "" HAVE_LIBZ)
if(HAVE_LIBZ)
set(ZLIB_LIBRARIES z)
endif()
endif()
The question is whether that's the right thing to do.
https://reviews.llvm.org/D39002
More information about the llvm-commits
mailing list