cmake: add test for DISABLE options, add CURL_DISABLE_HEADERS_API

- tests: verify CMake `DISABLE` options.

  Make an exception for 2 CMake-only ones, and one more that's
  using a different naming scheme, also in autotools and source.

- cmake: add support for `CURL_DISABLE_HEADERS_API`.

Suggested-by: Daniel Stenberg
Ref: https://github.com/curl/curl/pull/12345#pullrequestreview-1736238641

Closes #12353
This commit is contained in:
Viktor Szakats 2023-11-17 21:42:54 +00:00
parent b9b50f3193
commit 33493db2af
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 46 additions and 0 deletions

View file

@ -80,6 +80,9 @@
/* disables GOPHER */
#cmakedefine CURL_DISABLE_GOPHER 1
/* disables headers-api support */
#cmakedefine CURL_DISABLE_HEADERS_API 1
/* disables HSTS support */
#cmakedefine CURL_DISABLE_HSTS 1