curl/CMake
Viktor Szakats 919394ee64
cmake: more small tidy-ups and fixes
- tidy up two `MATCHES` expression by avoiding macros expansion and
  adding quotes. Then convert then to `STREQUAL` to match other places
  in the code doing the same checks.

- fix setting `_ALL_SOURCE` for AIX to match what autotools does.

- delete stray `_ALL_SOURCE` reference from `lib/config_riscos.h`

- simplify/fix two `STREQUAL ""` checks.
  The one in the `openssl_check_symbol_exists()` macro succeeded
  regardless of the value. The other could return TRUE when
  `CMAKE_OSX_SYSROOT` was undefined.

- delete code for CMake versions (<3.7) we no longer support.

- prefer `LIST(APPEND ...)` to extend `CURL_LIBS`.

- use `CURL_LIBS` to add the `network` lib for Haiku.
  Before this patch it was done via raw C flags. I could not test this.

- move `_WIN32_WINNT`-related code next to each other.
  It also moves detection to the top, allowing more code to use
  the result.

- merge two `WIN32` blocks.

- rename internal variables to underscore + lowercase.

- unwrap a line, indent, whitespace.

Closes #14450
2024-08-08 13:48:28 +02:00
..
Platforms build: tidy up __builtin_available feature checks (Apple) 2024-07-10 11:42:46 +02: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 cmake: bring curl-config.cmake closer to FindCURL 2024-06-13 11:17:32 +02:00
CurlSymbolHiding.cmake cmake: more small tidy-ups and fixes 2024-08-08 13:48:28 +02:00
CurlTests.c cmake: tidy-ups 2024-08-03 20:49:15 +02:00
FindBearSSL.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
FindBrotli.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
FindCARES.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
FindGSS.cmake cmake: fix version variable references in FindGSS 2024-08-07 23:41:27 +02:00
FindLibPSL.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
FindLibSSH2.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
FindMbedTLS.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
FindMSH3.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
FindNettle.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
FindNGHTTP2.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
FindNGHTTP3.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
FindNGTCP2.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
FindQUICHE.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
FindWolfSSL.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
FindZstd.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
Macros.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
OtherTests.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00
PickyWarnings.cmake tidy-up: OS names 2024-08-04 19:17:45 +02:00
Utilities.cmake cmake: more syntax tidy-up 2024-08-07 23:41:27 +02:00