Needs glib-2.0 as a pkg-config dependencypull/607/head
parent
50fef89218
commit
0623f71e36
3 changed files with 20 additions and 0 deletions
@ -0,0 +1,12 @@ |
||||
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) |
@ -0,0 +1,7 @@ |
||||
#include <glib.h> |
||||
|
||||
#ifndef MESON_OUR_GLIB |
||||
#error "Failed" |
||||
#endif |
||||
|
||||
int main() { return 0; } |
@ -0,0 +1 @@ |
||||
#define MESON_OUR_GLIB 1 |
Loading…
Reference in new issue