Probably a bug in FindCURL.cmake
Variable: CURL_CONFIG_FEATURES
in this line
https://github.com/Kitware/CMake/blob/4541c914b587125048c8e82bc3cd687f573f753a/Modules/FindCURL.cmake#L113
Should probably be renamed to CURL_SUPPORTED_FEATURES
. Currently it's never used anywhere and it's generated only when PC_CURL_FOUND
is false, the following logic loops with CURL_SUPPORTED_FEATURES
to detect which features are supported.
The same to CURL_CONFIG_PROTOCOLS