cmake: add missing pkg-config hints to Find modules

- brotli, c-ares, libpsl, libssh2, mbedtls, rustls:
  Use `pkg-config` for path hints and version info. Syncing them up with
  the rest of Find modules.

- GHA/macos: force-disable libssh2 with cmake to sync with autotools.
  After this patch, cmake auto-detects libssh2 in this job.

Closes #14545
This commit is contained in:
Viktor Szakats 2024-08-13 11:20:00 +02:00
parent dd3b3eca5b
commit 2784801977
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
7 changed files with 133 additions and 14 deletions

View file

@ -598,6 +598,7 @@ jobs:
"-DCMAKE_C_COMPILER_TARGET=$(uname -m | sed 's/arm64/aarch64/')-apple-darwin$(uname -r)" \
-DBUILD_LIBCURL_DOCS=OFF -DBUILD_MISC_DOCS=OFF -DENABLE_CURL_MANUAL=OFF \
-DUSE_NGHTTP2=OFF -DUSE_LIBIDN2=OFF -DUSE_APPLE_IDN=OFF \
-DCURL_USE_LIBSSH2=OFF \
${options}
fi