mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
Merge pull request #963 from radfish/PR--cmake-check-openssl-ver
cmake: check openssl version
This commit is contained in:
commit
eabeeaccfe
1 changed files with 4 additions and 0 deletions
|
@ -322,6 +322,10 @@ endif()
|
||||||
find_package ( OpenSSL REQUIRED )
|
find_package ( OpenSSL REQUIRED )
|
||||||
if(NOT DEFINED OPENSSL_INCLUDE_DIR)
|
if(NOT DEFINED OPENSSL_INCLUDE_DIR)
|
||||||
message(SEND_ERROR "Could not find OpenSSL. Please download and install it first!")
|
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()
|
endif()
|
||||||
|
|
||||||
if (WITH_UPNP)
|
if (WITH_UPNP)
|
||||||
|
|
Loading…
Add table
Reference in a new issue