From 00b3d49d3a86490f0596100b23cd2c3a49334c75 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 5 Feb 2020 17:59:27 -0800 Subject: [PATCH] [CMake] Link against ZLIB::ZLIB This is the imported target that find_package(ZLIB) defines. --- llvm/lib/Support/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )