INSTALL.md: add building-from-source overview section

Ref: #22098

Closes #22113
This commit is contained in:
Viktor Szakats 2026-06-19 22:32:06 +02:00
parent 27370e9fc7
commit 2c1e625a6f
No known key found for this signature in database

View file

@ -13,6 +13,24 @@ document does not describe how to install curl or libcurl using such a binary
package. This document describes how to compile, build and install curl and
libcurl from [source code](https://curl.se/download.html).
## Building from source
You can use autotools or CMake to build curl from source. They work equally
well and have close to feature parity.
autotools' advantages are wide portability and the Unix philosophy, while
CMake typically has faster configuration and build times, and supports MSVC.
Option defaults and dependency detection details may differ.
With both build tools, some features require Perl, and the pytest test suite
requires Python.
You can find live examples for both tools and many build cases in curl's CI
scripts: `.github/workflows/*.yml`, `.circleci/*.yml` and `appveyor.*` (in the
Git repository only). For CMake-specific instructions, see
[INSTALL-CMAKE.md](https://github.com/curl/curl/blob/master/docs/INSTALL-CMAKE.md).
## Building using vcpkg
You can download and install curl and libcurl using