The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
375 B
13 lines
375 B
5 years ago
|
project('subdir include order', 'c')
|
||
|
|
||
|
# Ensure that headers in subdirs override external dependencies
|
||
|
cc = meson.get_compiler('c')
|
||
|
|
||
|
glib = dependency('glib-2.0')
|
||
|
|
||
|
# This will fail to compile if it picks up the system-installed glib instead of
|
||
|
# the glib in the subdir
|
||
|
executable('prog', 'prog.c',
|
||
|
include_directories : include_directories('subdir'),
|
||
|
dependencies : glib)
|