aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/config-ix.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/config-ix.cmake')
-rwxr-xr-xcmake/config-ix.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index c426f41..7c4285a 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -105,7 +105,11 @@ if( NOT PURE_WINDOWS )
endif()
check_library_exists(dl dlopen "" HAVE_LIBDL)
check_library_exists(rt clock_gettime "" HAVE_LIBRT)
- check_library_exists(z compress2 "" HAVE_LIBZ)
+ if (LLVM_ENABLE_ZLIB)
+ check_library_exists(z compress2 "" HAVE_LIBZ)
+ else()
+ set(HAVE_LIBZ 0)
+ endif()
endif()
# function checks