[CMake] Link against ZLIB::ZLIB

This is the imported target that find_package(ZLIB) defines.
This commit is contained in:
Petr Hosek 2020-02-05 17:59:27 -08:00
parent c33d6970e0
commit 00b3d49d3a
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
if(LLVM_ENABLE_ZLIB)
set(system_libs ${ZLIB_LIBRARY})
set(system_libs ZLIB::ZLIB)
endif()
if( MSVC OR MINGW )