diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-01-01 21:49:03 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-01-02 22:29:08 +0200 |
commit | 3a6e2aeed9737f1082571e868ba50e72957f27c7 (patch) | |
tree | 97368bca44cb2b517c8b0101fab566d9c5df9c7a /docs/markdown/snippets | |
parent | 6c76ac80173bdc40d35e2d6b802f7950646781dc (diff) | |
download | meson-3a6e2aeed9737f1082571e868ba50e72957f27c7.zip meson-3a6e2aeed9737f1082571e868ba50e72957f27c7.tar.gz meson-3a6e2aeed9737f1082571e868ba50e72957f27c7.tar.bz2 |
Can use plain strings for include_directories.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/includestr.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/markdown/snippets/includestr.md b/docs/markdown/snippets/includestr.md new file mode 100644 index 0000000..fd4c130 --- /dev/null +++ b/docs/markdown/snippets/includestr.md @@ -0,0 +1,16 @@ +## `include_directories` accepts a string + +The `include_directories` keyword argument now accepts plain strings +rather than an include directory object. Meson will transparently +expand it so that a declaration like this: + +```meson +executable(..., include_directories: 'foo') +``` + +Is equivalent to this: + +```meson +foo_inc = include_directories('foo') +executable(..., include_directories: inc) +``` |