diff options
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Dependencies.md | 4 | ||||
-rw-r--r-- | docs/markdown/Reference-manual.md | 3 | ||||
-rw-r--r-- | docs/markdown/snippets/cmake_comps.md | 4 |
3 files changed, 10 insertions, 1 deletions
diff --git a/docs/markdown/Dependencies.md b/docs/markdown/Dependencies.md index 8cffba4..6937448 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` diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index ea02cd4..dd5893c 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -493,7 +493,8 @@ arguments: - other [library-specific](Dependencies.md#dependencies-with-custom-lookup-functionality) keywords may also be accepted (e.g. `modules` specifies submodules to use for -dependencies such as Qt5 or Boost. ) +dependencies such as Qt5 or Boost. `components` allows the user to manually +add CMake `COMPONENTS` for the `find_package` lookup) - `disabler` if `true` and the dependency couldn't be found, return a [disabler object](#disabler-object) instead of a not-found dependency. *Since 0.49.0* diff --git a/docs/markdown/snippets/cmake_comps.md b/docs/markdown/snippets/cmake_comps.md new file mode 100644 index 0000000..83b8f2c --- /dev/null +++ b/docs/markdown/snippets/cmake_comps.md @@ -0,0 +1,4 @@ +## CMake find_package COMPONENTS support + +It is now possible to pass components to the CMake dependency backend via the +new `components` kwarg in the `dependency` function. |