diff --git a/cmake/IncludeFindCurl.cmake b/cmake/IncludeFindCurl.cmake index 895f47e17b9..a7de96afcba 100644 --- a/cmake/IncludeFindCurl.cmake +++ b/cmake/IncludeFindCurl.cmake @@ -54,7 +54,7 @@ unset(CURL_OPENSSL_REQUIRES_CALLBACKS) find_program(CURL_CONFIG_EXECUTABLE NAMES curl-config) if(CURL_CONFIG_EXECUTABLE) set(_min_curl_version_for_ssl_backends "7.58.0") - if ((CURL_VERSION_STRING VERSION_EQUAL "${_min_curl_version_for_ssl_backends}") OR (CURL_VERSION_STRING VERSION_GREATER "${_min_curl_version_for_ssl_backends}")) + if (CURL_VERSION_STRING VERSION_GREATER_EQUAL "${_min_curl_version_for_ssl_backends}") execute_process(COMMAND ${CURL_CONFIG_EXECUTABLE} --ssl-backends RESULT_VARIABLE _result_ssl_backends diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index c0fd0723f06..07d5a259c4a 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -96,7 +96,7 @@ if(Asciidoctor_FOUND) # Prefer Asciidoctor if it's available set(_asciidoctor_option_failurelevel) - if((Asciidoctor_VERSION VERSION_GREATER "1.5.7") OR (Asciidoctor_VERSION VERSION_EQUAL "1.5.7")) + if(Asciidoctor_VERSION VERSION_GREATER_EQUAL "1.5.7") # Asciidoctor 1.5.7+ supports the "--failure-level" CLI option set(_asciidoctor_option_failurelevel "--failure-level=ERROR") endif()