vendored-meson/meson/test cases/failing build/3 cmake subproject isolation/meson.build
raw| 1 | project('subproject isolation', ['c', 'cpp']) |
| 2 | |
| 3 | incdir = meson.source_root() / 'incDir' |
| 4 | |
| 5 | cm = import('cmake') |
| 6 | |
| 7 | # This should generate a warning and the include dir should be skipped. |
| 8 | sub_pro = cm.subproject('cmMod', cmake_options : [ '-DMESON_INC_DIR=' + incdir ]) |
| 9 | sub_dep = sub_pro.dependency('cmModLib++') |
| 10 | |
| 11 | # Since the include dir is skipped, the compilation of this project should fail. |
| 12 | exe1 = executable('main', ['main.cpp'], dependencies: [sub_dep]) |
| 13 | test('test1', exe1) |