test cases/common/291 subproject with foreign lang/meson.build
raw| 1 | project('depfallback', 'cpp') |
| 2 | |
| 3 | subp = subproject('pcre2') |
| 4 | |
| 5 | lib = static_library('intlib', 'intlib.cpp', |
| 6 | link_with: subp.get_variable('pcre2_lib')) |
| 7 | |
| 8 | executable('p2test', 'p2test.cpp', |
| 9 | link_with: lib) |
| 10 | |
| 11 | # This should warn, if it doesn't we've leaked a subproject language into our |
| 12 | # super project |
| 13 | c = meson.get_compiler('c') |