Add basic zlib support to LLVM. This would allow to use compression/uncompression...
[oota-llvm.git] / cmake / modules / LLVM-Config.cmake
index 163401c857c54b9258379097089085915906de6d..2ddc0b2bf89a34c14dc06cc77063f80e7aab89f5 100644 (file)
@@ -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)