Change #261851
| Category | curl |
| Changed by | Viktor Szakats <commit@vsz.me> |
| Changed at | Sat 21 Mar 2026 13:24:47 |
| Repository | https://github.com/curl/curl.git |
| Project | curl |
| Branch | master |
| Revision | 89043ba90689418a115e967633e261139b48ce23 |
Comments
cmake: drop support for CMake 3.17 and older Require CMake 3.18 (2020-07-15) or newer, up from 3.7 (2016-11-11) prior to this patch. This requirement also applies to the distributed `curl-config.cmake`. To allow dropping compatibility code maintained for old versions, and to use features which were unpractical in separate code paths. Also to make testing, documentation and development easier, CI builds faster due to CMake performance improvements over time. (e.g. integration tests on macOS run 8x faster (10 minutes is now under 1.5m) in CI, 2.5x faster on Windows.) CMake offers pre-built binaries for major platforms. They work without an install step, just by unpacking and pointing the cmake command to them. Making upgrades easy in many cases: https://cmake.org/download/ https://cmake.org/files/ https://github.com/Kitware/CMake/releases CMake 3.18 brings these feature as generally available when building or consuming curl/libcurl: LTO support, improved performance, `pkg-config` and interface target support, `OBJECT` target (for faster libcurl builds), modern invocation with `-S`/`-B` options, better support for custom linker options, FetchContent, `GnuTLS::GnuTLS` target, `--verbose` and `--install` options, `CMAKE_GENERATOR` env, last but not least unity mode and Ninja generator. For maximum build speed, use: `-DCMAKE_UNITY_BUILD=ON -DCURL_DROP_UNUSED=ON` As for deprecations, C++11 is required to build CMake itself, which may be a limit on some platforms. autotools continues to cover them. Follow-up to 9bcdfb3809a41327054421368bdea77ea17e6f90 #20408 Follow-up to a7c974e038572bd1d4a653afbd6de5fad5a10215 #19902 Follow-up to dfbe035c8b39b056a234bc76df3f384f7a7a24af #10161 Discussion: https://github.com/curl/curl/discussions/18704 Closes #20407
Changed files
- .github/workflows/linux-old.yml
- CMake/FindBrotli.cmake
- CMake/FindCares.cmake
- CMake/FindGSS.cmake
- CMake/FindGnuTLS.cmake
- CMake/FindLDAP.cmake
- CMake/FindLibbacktrace.cmake
- CMake/FindLibgsasl.cmake
- CMake/FindLibidn2.cmake
- CMake/FindLibpsl.cmake
- CMake/FindLibrtmp.cmake
- CMake/FindLibssh.cmake
- CMake/FindLibssh2.cmake
- CMake/FindLibuv.cmake
- CMake/FindMbedTLS.cmake
- CMake/FindNGHTTP2.cmake
- CMake/FindNGHTTP3.cmake
- CMake/FindNGTCP2.cmake
- CMake/FindNettle.cmake
- CMake/FindQuiche.cmake
- CMake/FindRustls.cmake
- CMake/FindWolfSSL.cmake
- CMake/FindZstd.cmake
- CMake/curl-config.in.cmake
- CMakeLists.txt
- appveyor.sh
- appveyor.yml
- docs/DEPRECATE.md
- docs/INSTALL-CMAKE.md
- docs/INTERNALS.md
- docs/examples/CMakeLists.txt
- lib/CMakeLists.txt
- src/CMakeLists.txt
- tests/cmake/CMakeLists.txt
- tests/cmake/test.sh