aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-05-20 10:41:26 -0700
committerDylan Baker <dylan@pnwbakers.com>2019-05-20 10:41:26 -0700
commitc890c947fad17423f98b1cdfb5c49db296acc502 (patch)
tree7ca436efa3d5db05d66d050b8f7dca66188cb8c3 /docs/markdown
parentffe2a678d59b2d4184cadd5e4a8f31e8e6108968 (diff)
downloadmeson-c890c947fad17423f98b1cdfb5c49db296acc502.zip
meson-c890c947fad17423f98b1cdfb5c49db296acc502.tar.gz
meson-c890c947fad17423f98b1cdfb5c49db296acc502.tar.bz2
fixup! tests: Add test for Dependency.get_variable
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/snippets/dependency_get_variable_method.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/markdown/snippets/dependency_get_variable_method.md b/docs/markdown/snippets/dependency_get_variable_method.md
index 5804865..aaeac9c 100644
--- a/docs/markdown/snippets/dependency_get_variable_method.md
+++ b/docs/markdown/snippets/dependency_get_variable_method.md
@@ -11,7 +11,7 @@ dependency you have.
```meson
dep = dependency('could_be_cmake_or_pkgconfig')
# cmake returns 'YES', pkg-config returns 'ON'
-if ['YES', 'ON'].contains(dep.get_variable(pkg-config : 'var-name', cmake : 'COP_VAR_NAME', default : 'NO'))
+if ['YES', 'ON'].contains(dep.get_variable(pkg-config : 'var-name', cmake : 'COP_VAR_NAME', default_value : 'NO'))
error('Cannot build your project when dep is built with var-name support')
endif
```