diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-04-23 08:28:39 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-04-23 08:28:39 +0000 |
commit | ee03c949b85036b68c261dcc27dca064ee7e525d (patch) | |
tree | 14f060f70c0c6e5346a0f120c196f6718b060cd4 /cmake/modules/LLVM-Config.cmake | |
parent | a8958769ea5583d58ae51931d8b1271c23fd20ea (diff) | |
download | external_llvm-ee03c949b85036b68c261dcc27dca064ee7e525d.zip external_llvm-ee03c949b85036b68c261dcc27dca064ee7e525d.tar.gz external_llvm-ee03c949b85036b68c261dcc27dca064ee7e525d.tar.bz2 |
Add basic zlib support to LLVM. This would allow to use compression/uncompression in selected LLVM tools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/LLVM-Config.cmake')
-rw-r--r-- | cmake/modules/LLVM-Config.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/LLVM-Config.cmake b/cmake/modules/LLVM-Config.cmake index 163401c..2ddc0b2 100644 --- a/cmake/modules/LLVM-Config.cmake +++ b/cmake/modules/LLVM-Config.cmake @@ -13,6 +13,9 @@ function(get_system_libs return_var) if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD ) set(system_libs ${system_libs} pthread) endif() + if ( LLVM_ENABLE_ZLIB AND HAVE_LIBZ ) + set(system_libs ${system_libs} z) + endif() endif( MINGW ) endif( NOT MSVC ) set(${return_var} ${system_libs} PARENT_SCOPE) |