Skip to content

Commit 00b3d49

Browse files
committed
[CMake] Link against ZLIB::ZLIB
This is the imported target that find_package(ZLIB) defines.
1 parent c33d697 commit 00b3d49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if(LLVM_ENABLE_ZLIB)
2-
set(system_libs ${ZLIB_LIBRARY})
2+
set(system_libs ZLIB::ZLIB)
33
endif()
44

55
if( MSVC OR MINGW )

0 commit comments

Comments
 (0)