Merge pull request #963 from radfish/PR--cmake-check-openssl-ver

cmake: check openssl version
This commit is contained in:
Jeff 2017-09-26 12:34:31 -04:00 committed by GitHub
commit eabeeaccfe

View File

@ -322,6 +322,10 @@ endif()
find_package ( OpenSSL REQUIRED )
if(NOT DEFINED OPENSSL_INCLUDE_DIR)
message(SEND_ERROR "Could not find OpenSSL. Please download and install it first!")
else()
if(NOT (OPENSSL_VERSION VERSION_LESS 1.1))
message(SEND_ERROR "Unsupported OpenSSL version: ${OPENSSL_VERSION} (required < 1.1)")
endif()
endif()
if (WITH_UPNP)