diff --git a/CMakeLists.txt b/CMakeLists.txt index 87656de6..e42034b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -418,6 +418,7 @@ if(MZ_OPENSSL) list(APPEND MINIZIP_LIB ${OPENSSL_LIBRARIES}) list(APPEND MINIZIP_LBD ${OPENSSL_LIBRARY_DIRS}) + if(OPENSSL_INCLUDE_DIRS) message(STATUS "Using OpenSSL include directory: ${OPENSSL_INCLUDE_DIRS}") list(APPEND MINIZIP_INC ${OPENSSL_INCLUDE_DIRS}) @@ -426,6 +427,15 @@ if(MZ_OPENSSL) message(STATUS "Using OpenSSL include directory: ${OPENSSL_INCLUDE_DIR}") list(APPEND MINIZIP_INC ${OPENSSL_INCLUDE_DIR}) endif() + if(EXISTS ${OPENSSL_INCLUDE_DIR}/err.h) + message(STATUS "Found err.h") + endif() + if(EXISTS ${OPENSSL_INCLUDE_DIR}/openssl/err.h) + message(STATUS "Found openssl/err.h") + endif() + if(EXISTS ${OPENSSL_INCLUDE_DIR}/openssl/ssl.h) + message(STATUS "Found openssl/ssl.h") + endif() foreach(i ${OPENSSL_LIBRARIES}) set(PC_PRIVATE_LIBS "${PC_PRIVATE_LIBS} -l${i}")