aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/wrap.md
blob: 6e03c2e13ffa500f7cc4a8f66e51df5ac5e4ba69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
## Automatic fallback to `cmake` subproject

CMake subprojects have been supported for a while using the `cmake.subproject()`
module method. However until now it was not possible to use a CMake subproject
as fallback in a `dependency()` call.

A wrap file can now specify the method used to build it by setting the `method`
key in the wrap file's first section. The method defaults to `meson`.

Supported methods:
- `meson` requires `meson.build` file.
- `cmake` requires `CMakeLists.txt` file. [See details](Wrap-dependency-system-manual.md#cmake-wraps).