diff options
| author | Daniel Mensinger <daniel@mensinger-ka.de> | 2020-02-01 18:02:19 +0100 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-03-19 22:52:03 +0200 |
| commit | 673ca982f150200e27db7654ae38684b97f43b27 (patch) | |
| tree | 016eaf2af5774d02e8d938481b25dd3627db537e /docs/markdown/Dependencies.md | |
| parent | 02e7316d31709db48cbdcafcc7eac2ad94a1b487 (diff) | |
| download | meson-673ca982f150200e27db7654ae38684b97f43b27.tar.gz | |
cmake: Add find_package COMPONETS support
Diffstat (limited to 'docs/markdown/Dependencies.md')
| -rw-r--r-- | docs/markdown/Dependencies.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/markdown/Dependencies.md b/docs/markdown/Dependencies.md index 8cffba44e..69374488d 100644 --- a/docs/markdown/Dependencies.md +++ b/docs/markdown/Dependencies.md @@ -173,6 +173,10 @@ it automatically. cmake_dep = dependency('ZLIB', method : 'cmake', modules : ['ZLIB::ZLIB']) ``` +Support for adding additional `COMPONENTS` for the CMake `find_package` lookup +is provided with the `components` kwarg (*introduced in 0.54.0*). All specified +componets will be passed directly to `find_package(COMPONENTS)`. + It is also possible to reuse existing `Find<name>.cmake` files with the `cmake_module_path` property. Using this property is equivalent to setting the `CMAKE_MODULE_PATH` variable in CMake. The path(s) given to `cmake_module_path` |
