diff options
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/CMake-module.md | 5 | ||||
-rw-r--r-- | docs/markdown/snippets/cmake_include_type.md | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/docs/markdown/CMake-module.md b/docs/markdown/CMake-module.md index 48c3d75..f811ab4 100644 --- a/docs/markdown/CMake-module.md +++ b/docs/markdown/CMake-module.md @@ -133,7 +133,10 @@ kept for compatibility. It will not work together with the `options` kwarg. This object is returned by the `subproject` function described above and supports the following methods: - - `dependency(target)` returns a dependency object for any CMake target. + - `dependency(target)` returns a dependency object for any CMake target. The + `include_type` kwarg *(new in 0.56.0)* controls the include type of the + returned dependency object similar to the same kwarg in the + [`dependency()`](Reference-manual.md#dependency) function. - `include_directories(target)` returns a meson `include_directories()` object for the specified target. Using this function is not necessary if the dependency object is used. diff --git a/docs/markdown/snippets/cmake_include_type.md b/docs/markdown/snippets/cmake_include_type.md new file mode 100644 index 0000000..f8637c0 --- /dev/null +++ b/docs/markdown/snippets/cmake_include_type.md @@ -0,0 +1,5 @@ +## `include_type` support for the CMake subproject object dependency method + +The `dependency()` method of the CMake subproject object now also supports the +`include_type` kwarg which is similar to the sane kwarg in the `dependency()` +function. |