curl/CMake
Viktor Szakats f2adb3b6d7
cmake: extend zlib's AUTO option to brotli, zstd and enable if found
- make `curl_dependency_option()` more generic.

- extend `CURL_BROTLI` and `CURL_ZSTD` options to accept
  `AUTO` in addition to existing `ON` and `OFF`.

- change `CURL_BROTLI` and `CURL_ZSTD` option default
  to `AUTO`. Was: `OFF`.
  It brings cmake behavior closer to `./configure`.
  Still different:
  - `./configure` defaults to `off` which means to check default
    locations. cmake checks more locations by default.
    (Also tried `NO_CMAKE_PATH`, but then it checked less locations.)
  - cmake returns both `brotlicommon` and `brotlidec` libs,
    while `./configure` only returns the latter.

- ci: drop explicit cmake options, that are now unnecessary.

- GHA/configure-vs-cmake: make adjustments to make tests pass.

Closes #15431
2024-12-17 04:06:45 +01:00
..
Platforms build: drop unused feature macros, update exception list 2024-12-16 18:05:24 +01:00
cmake_uninstall.cmake.in cmake: more small tidy-ups and fixes 2024-08-08 13:48:28 +02:00
CMakeConfigurableFile.in copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-config.cmake.in Revert: cmake: enable CURL_USE_PKGCONFIG for cross-MINGW 2024-12-17 03:21:22 +01:00
CurlSymbolHiding.cmake Makefile.mk: drop in favour of autotools and cmake (MS-DOS, AmigaOS3) 2024-12-16 23:20:55 +01:00
CurlTests.c Makefile.mk: drop in favour of autotools and cmake (MS-DOS, AmigaOS3) 2024-12-16 23:20:55 +01:00
FindBearSSL.cmake cmake: document -D and env build options 2024-10-24 23:06:40 +02:00
FindBrotli.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
FindCares.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
FindGSS.cmake Makefile.mk: drop in favour of autotools and cmake (MS-DOS, AmigaOS3) 2024-12-16 23:20:55 +01:00
FindLDAP.cmake cmake: replace unset(VAR) with set(VAR "") for init 2024-12-16 21:12:51 +01:00
FindLibgsasl.cmake cmake: clear package version after pkg-config detection 2024-10-25 15:04:35 +02:00
FindLibidn2.cmake cmake: clear package version after pkg-config detection 2024-10-25 15:04:35 +02:00
FindLibpsl.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
FindLibssh2.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
FindLibssh.cmake cmake: clear package version after pkg-config detection 2024-10-25 15:04:35 +02:00
FindLibuv.cmake cmake: clear package version after pkg-config detection 2024-10-25 15:04:35 +02:00
FindMbedTLS.cmake cmake/FindMbedTLS: drop lib duplicates early 2024-12-14 23:43:02 +01:00
FindMSH3.cmake build: omit certain deps from libcurl.pc unless found via pkg-config 2024-11-14 22:38:47 +01:00
FindNettle.cmake cmake: clear package version after pkg-config detection 2024-10-25 15:04:35 +02:00
FindNGHTTP2.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
FindNGHTTP3.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
FindNGTCP2.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
FindQuiche.cmake cmake: document -D and env build options 2024-10-24 23:06:40 +02:00
FindRustls.cmake build: omit certain deps from libcurl.pc unless found via pkg-config 2024-11-14 22:38:47 +01:00
FindWolfSSH.cmake cmake: clear package version after pkg-config detection 2024-10-25 15:04:35 +02:00
FindWolfSSL.cmake cmake: clear package version after pkg-config detection 2024-10-25 15:04:35 +02:00
FindZstd.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
Macros.cmake cmake: extend zlib's AUTO option to brotli, zstd and enable if found 2024-12-17 04:06:45 +01:00
OtherTests.cmake Makefile.mk: drop in favour of autotools and cmake (MS-DOS, AmigaOS3) 2024-12-16 23:20:55 +01:00
PickyWarnings.cmake Makefile.mk: drop in favour of autotools and cmake (MS-DOS, AmigaOS3) 2024-12-16 23:20:55 +01:00
Utilities.cmake cmake: namespace functions and macros 2024-12-16 21:55:00 +01:00