[PATCH] D74102: [CMake] Link against ZLIB::ZLIB
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 5 18:02:49 PST 2020
phosek created this revision.
phosek added a reviewer: compnerd.
Herald added subscribers: llvm-commits, hiraditya, mgorny.
Herald added a project: LLVM.
This is the imported target that find_package(ZLIB) defines.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D74102
Files:
llvm/lib/Support/CMakeLists.txt
Index: llvm/lib/Support/CMakeLists.txt
===================================================================
--- llvm/lib/Support/CMakeLists.txt
+++ llvm/lib/Support/CMakeLists.txt
@@ -1,5 +1,5 @@
if(LLVM_ENABLE_ZLIB)
- set(system_libs ${ZLIB_LIBRARY})
+ set(system_libs ZLIB::ZLIB)
endif()
if( MSVC OR MINGW )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74102.242795.patch
Type: text/x-patch
Size: 316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200206/40174f8a/attachment.bin>
More information about the llvm-commits
mailing list