[Lldb-commits] [lldb] c86f56e - [CMake] Find zlib when building lldb as standalone

Petr Hosek via lldb-commits lldb-commits at lists.llvm.org
Fri Jul 24 13:41:04 PDT 2020


Author: Petr Hosek
Date: 2020-07-24T13:36:13-07:00
New Revision: c86f56e32e724c6018e579bb2bc11e667c96fc96

URL: https://github.com/llvm/llvm-project/commit/c86f56e32e724c6018e579bb2bc11e667c96fc96
DIFF: https://github.com/llvm/llvm-project/commit/c86f56e32e724c6018e579bb2bc11e667c96fc96.diff

LOG: [CMake] Find zlib when building lldb as standalone

This addresses the issue introduced by 10b1b4a.

Added: 
    

Modified: 
    lldb/cmake/modules/LLDBStandalone.cmake

Removed: 
    


################################################################################
diff  --git a/lldb/cmake/modules/LLDBStandalone.cmake b/lldb/cmake/modules/LLDBStandalone.cmake
index 752113bcc6c4..edd2b34ec865 100644
--- a/lldb/cmake/modules/LLDBStandalone.cmake
+++ b/lldb/cmake/modules/LLDBStandalone.cmake
@@ -73,6 +73,11 @@ endif()
 # We append the directory in which LLVMConfig.cmake lives. We expect LLVM's
 # CMake modules to be in that directory as well.
 list(APPEND CMAKE_MODULE_PATH "${LLVM_DIR}")
+
+if(LLVM_ENABLE_ZLIB)
+  find_package(ZLIB)
+endif()
+
 include(AddLLVM)
 include(TableGen)
 include(HandleLLVMOptions)


        


More information about the lldb-commits mailing list