cmake: check libgsasl version at configure time
No binary (build failed)
—
(log yok)
| @@ -1336,6 +1336,9 @@ option(CURL_USE_GSASL "Use libgsasl" OFF) | |
| mark_as_advanced(CURL_USE_GSASL) | |
| if(CURL_USE_GSASL) | |
| find_package(Libgsasl MODULE REQUIRED) | |
| + | if(LIBGSASL_VERSION VERSION_LESS 1.6.0) |
| + | message(FATAL_ERROR "libgsasl 1.6.0 or greater required.") |
| + | endif() |
| list(APPEND CURL_LIBS CURL::libgsasl) | |
| set(USE_GSASL ON) | |
| endif() | |