From 125915e254adfbbead04fc5cb11fa5f5ca4eca14 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 25 Jul 2020 08:30:18 -0700 Subject: [PATCH] Adapt llvmorg-12-init-946-g10b1b4a231a: add find_package(ZLIB) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a94d9c91..b3a02386 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,6 +120,10 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD) target_link_libraries(ccls PRIVATE thr) endif() +if(LLVM_ENABLE_ZLIB) + find_package(ZLIB) +endif() + ### Definitions # Find Clang resource directory with Clang executable.