[llvm] 00b3d49 - [CMake] Link against ZLIB::ZLIB
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 5 18:06:58 PST 2020
Author: Petr Hosek
Date: 2020-02-05T18:06:13-08:00
New Revision: 00b3d49d3a86490f0596100b23cd2c3a49334c75
URL: https://github.com/llvm/llvm-project/commit/00b3d49d3a86490f0596100b23cd2c3a49334c75
DIFF: https://github.com/llvm/llvm-project/commit/00b3d49d3a86490f0596100b23cd2c3a49334c75.diff
LOG: [CMake] Link against ZLIB::ZLIB
This is the imported target that find_package(ZLIB) defines.
Added:
Modified:
llvm/lib/Support/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt
index 26332d4f539c..a0d2cea52dd9 100644
--- a/llvm/lib/Support/CMakeLists.txt
+++ b/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 )
More information about the llvm-commits
mailing list