aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-10-13 16:47:23 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-10-13 23:51:25 +0300
commite36f713a7f5cc10d3f8adc7ae1c73ef6cce51082 (patch)
tree8b0c072a8ba46fa629bb99dfd460282953076f56 /docs
parente00df9046defea68ca449635d9ce3e849bc70807 (diff)
downloadmeson-e36f713a7f5cc10d3f8adc7ae1c73ef6cce51082.zip
meson-e36f713a7f5cc10d3f8adc7ae1c73ef6cce51082.tar.gz
meson-e36f713a7f5cc10d3f8adc7ae1c73ef6cce51082.tar.bz2
include_type: Add CMake subporject dependency method (fixes #6879)
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/CMake-module.md5
-rw-r--r--docs/markdown/snippets/cmake_include_type.md5
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.