From 2c6a8608515725a635df730d29ae36a73a10ca19 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. --- lib/Support/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Support/CMakeLists.txt b/lib/Support/CMakeLists.txt index 26332d4f539..a0d2cea52dd 100644 --- a/lib/Support/CMakeLists.txt +++ b/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 )