Fix OpenSSL version message

This commit is contained in:
Anthony Louis committed 2021-04-09 19:34:24 -03:00
1 parent 343ef7497c
commit f30e8039c1
1 file changed
+2 -3
+2 -3
View File
@@ -28,10 +28,9 @@ else()
endif()
if (OPENSSL_FOUND)
message(STATUS "OpenSSL found with ${OPENSSL_VERSION} version")
if (OPENSSL_VERSION LESS "1.1.0")
message(SEND_ERROR "The OpenSSL must be greater than 1.0.0, the actual version is ${OPENSSL_VERSION}")
else ()
message(STATUS "OpenSSL found with ${OPENSSL_VERSION}")
message(SEND_ERROR "The OpenSSL must be greater than or equal to 1.1.0")
endif ()
else ()
message(SEND_ERROR "Not found the OpenSSL library")