aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-05-02 16:14:15 +0200
committerDylan Baker <dylan@pnwbakers.com>2025-05-05 10:39:26 -0700
commit1b3263c893a67810119495cae27a77a03b569705 (patch)
tree738ccf6ef8cb8ae7629fbdcfb0a9de355c6cc8db /docs/markdown
parentbc46fac4f42d753c69c6cc116d72346d9cc7a737 (diff)
downloadmeson-1b3263c893a67810119495cae27a77a03b569705.zip
meson-1b3263c893a67810119495cae27a77a03b569705.tar.gz
meson-1b3263c893a67810119495cae27a77a03b569705.tar.bz2
cmake: include_directories() returns an array
See the way that it is created: dir_node = assign(dir_var, function(include_directories, tgt.includes)) sys_node = assign(sys_var, function(include_directories, tgt.sys_includes, {is_system: True})) inc_node = assign(inc_var, array([id_node(dir_var), id_node(sys_var)])) Due to incorrect documentation, commit 1f4bb3737 ("modules/cmake: Make fully type safe", 2025-04-02) added an incorrect assertion. Fix both. Fixes: #14530 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/CMake-module.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/markdown/CMake-module.md b/docs/markdown/CMake-module.md
index f8275c9..982fa35 100644
--- a/docs/markdown/CMake-module.md
+++ b/docs/markdown/CMake-module.md
@@ -138,8 +138,8 @@ and supports the following methods:
`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]] function.
- - `include_directories(target)` returns a Meson [[@inc]]
- object for the specified target. Using this method is not necessary
+ - `include_directories(target)` returns an array of Meson [[@inc]]
+ objects for the specified target. Using this method is not necessary
if the dependency object is used.
- `target(target)` returns the raw build target.
- `target_type(target)` returns the type of the target as a string