To fix linking a static wolfSSL library for Apple targets. Also stop linking `m` and `dl` on Apple platforms. Matching logic in wolfSSL build code: 8bde512676/CMakeLists.txt (L2520-L2544) Reported-by: Kai Pastor Reported-by: Tal Regev Bug: https://github.com/microsoft/vcpkg/pull/46444#pullrequestreview-3026575393 Ref: https://github.com/microsoft/vcpkg/pull/46444/commits/3a845c4b15066e8167bb4708007180fb6bedf40d Closes #17945
8bde512676/CMakeLists.txt (L2520-L2544)
HAVE_SYS_SOCKET_H
HAVE_SYS_TIME_H
cmakelint
cmake-lint
cmakelang
curl_add_clang_tidy_test_target
sys/stat.h