1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-05 00:55:04 -05:00
curl/CMake
Rolf Eike Beer fc9312f717 CMake: clean up and improve build procedures
- remove check for unsupported old CMake versions

- do not link to c-ares library twice

- modernize custom Find modules

    - FindLibSSH2:
        - pass version to FPHSA to show it in the output
        - use LIBSSH2_VERSION define to extract the version number in
          one shot. This variable exists in the header for 10 years.
        - remove unneeded code

    - FindNGHTTP2.cmake:
        - drop needless FPHSA argument
        - mark found variables as advanced

    - FindNSS.cmake:
        - show version number

    - FindCARES.cmake:
        - drop default paths
        - use FPHSA instead of checking things by hand

- remove needless explict variable dereference

- simplify count_true()

- allow all policies up to version 3.16 to be set to NEW

- do not rerun check for -Wstrict-aliasing=3 every time

In contrast to every other compiler flag this has a = in it, which CMake
can't have in a variable name.

- only read the interesting strings from curlver.h

Reviewed-by: Peter Wu

Closes https://github.com/curl/curl/pull/4975
2020-02-29 23:14:16 -05:00
..
Platforms build: Remove unused HAVE_LIBSSL and HAVE_LIBCRYPTO defines 2019-10-05 19:18:30 -04:00
cmake_uninstall.cmake.in CMake: Update scripts to use consistent style 2018-07-17 11:54:07 +02:00
CMakeConfigurableFile.in whitespace fixes 2018-09-23 22:24:02 +00:00
curl-config.cmake.in cmake: uniform ZLIB to use USE_ variable and clean curl-config.cmake.in 2018-10-29 17:10:31 +01:00
CurlSymbolHiding.cmake CMake: clean up and improve build procedures 2020-02-29 23:14:16 -05:00
CurlTests.c copyrights: update all copyright notices to 2019 on files changed this year 2019-11-02 23:15:56 +01:00
FindBearSSL.cmake TLS: add BearSSL vtls implementation 2019-11-26 08:32:23 +01:00
FindBrotli.cmake cmake: add support for brotli 2018-03-19 08:28:32 +01:00
FindCARES.cmake CMake: clean up and improve build procedures 2020-02-29 23:14:16 -05:00
FindGSS.cmake CMake: remove needless newlines at end of gss variables 2019-08-31 11:40:10 +02:00
FindLibSSH2.cmake CMake: clean up and improve build procedures 2020-02-29 23:14:16 -05:00
FindMbedTLS.cmake CMake: Add mbedTLS support 2017-03-05 14:42:53 +01:00
FindNGHTTP2.cmake CMake: clean up and improve build procedures 2020-02-29 23:14:16 -05:00
FindNSS.cmake CMake: clean up and improve build procedures 2020-02-29 23:14:16 -05:00
Macros.cmake CMake: Update scripts to use consistent style 2018-07-17 11:54:07 +02:00
OtherTests.cmake CMake: clean up and improve build procedures 2020-02-29 23:14:16 -05:00
Utilities.cmake CMake: clean up and improve build procedures 2020-02-29 23:14:16 -05:00