From 3d0e4a9b2134d05d1a652e10273187690fe634ff Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周六, 14 12月 2019 12:20:15 +0800 Subject: [PATCH] fix centos 7 remove centos 8 --- CMakeLists.txt | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e8fddab..a7543e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,12 @@ MESSAGE(SEND_ERROR "Openssl required in Linux, please install it or specify -DOPENSSL_ROOT") ENDIF(NOT OPENSSL_FOUND) + #Zlib required when openssl version < 1.0.1f (centos 7) + SET ( ZLIB_USE_STATIC_LIBS ON ) + find_package(ZLIB REQUIRED) + list(APPEND EXTERNAL_LIBS ${ZLIB_LIBRARIES}) + MESSAGE(STATUS "Found zlib version ${ZLIB_VERSION} ") + find_package(Threads) if(THREADS_HAVE_PTHREAD_ARG) list(APPEND EXTERNAL_LIBS "-pthread") -- Gitblit v1.9.1