parent
6c76ac8017
commit
3a6e2aeed9
5 changed files with 40 additions and 4 deletions
@ -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) |
||||
``` |
@ -1,2 +1,5 @@ |
||||
exe = executable('prog', 'prog.c', 'func.c', include_directories : inc) |
||||
test('inc test', exe) |
||||
|
||||
exe2 = executable('prog2', 'prog.c', 'func.c', include_directories : '../include') |
||||
test('inc test 2', exe2) |
||||
|
Loading…
Reference in new issue