diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2020-10-13 16:10:29 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-10-13 23:51:25 +0300 |
commit | e00df9046defea68ca449635d9ce3e849bc70807 (patch) | |
tree | bf3a1760aea16b8856f4d22359663eb48760099e /test cases/common | |
parent | 3372c58ca633e2bc7d5b36bcd7e0d14d12e0f82a (diff) | |
download | meson-e00df9046defea68ca449635d9ce3e849bc70807.zip meson-e00df9046defea68ca449635d9ce3e849bc70807.tar.gz meson-e00df9046defea68ca449635d9ce3e849bc70807.tar.bz2 |
include_type: honor include_type in dependency fallbacks (fixes #7503)
Diffstat (limited to 'test cases/common')
-rw-r--r-- | test cases/common/226 include_type dependency/meson.build | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test cases/common/226 include_type dependency/meson.build b/test cases/common/226 include_type dependency/meson.build index d17e920..fe21dbb 100644 --- a/test cases/common/226 include_type dependency/meson.build +++ b/test cases/common/226 include_type dependency/meson.build @@ -33,6 +33,9 @@ sp_dep_sys = sp_dep.as_system('system') assert(sp_dep_sys.include_type() == 'system', 'changing include_type works') assert(sp_dep.include_type() == 'preserve', 'as_system must not mutate the original object') +fallback = dependency('sdffgagf_does_not_exist', include_type: 'system', fallback: ['subDep', 'subDep_dep']) +assert(fallback.include_type() == 'system', 'include_type works with dependency fallback') + # Check that PCH works with `include_type : 'system'` See https://github.com/mesonbuild/meson/issues/7167 main_exe = executable('main_exe', 'main.cpp', cpp_pch: 'pch/test.hpp', dependencies: boost_dep) test('main_test', main_exe) |