diff options
Diffstat (limited to '')
3 files changed, 19 insertions, 0 deletions
diff --git a/test cases/warning/4 fallback consistency/meson.build b/test cases/warning/4 fallback consistency/meson.build new file mode 100644 index 0000000..013b473 --- /dev/null +++ b/test cases/warning/4 fallback consistency/meson.build @@ -0,0 +1,4 @@ +project('proj', 'c') + +# Subproject overrides 'sub' with another variable than dep2. This should warn. +dependency('sub', fallback : ['sub', 'dep2']) diff --git a/test cases/warning/4 fallback consistency/subprojects/sub/meson.build b/test cases/warning/4 fallback consistency/subprojects/sub/meson.build new file mode 100644 index 0000000..12a6570 --- /dev/null +++ b/test cases/warning/4 fallback consistency/subprojects/sub/meson.build @@ -0,0 +1,5 @@ +project('proj', 'c') + +dep1 = declare_dependency() +dep2 = declare_dependency() +meson.override_dependency('sub', dep1) diff --git a/test cases/warning/4 fallback consistency/test.json b/test cases/warning/4 fallback consistency/test.json new file mode 100644 index 0000000..60e25b4 --- /dev/null +++ b/test cases/warning/4 fallback consistency/test.json @@ -0,0 +1,10 @@ +{ + "stdout": [ + { + "line": "WARNING: Inconsistency: Subproject has overridden the dependency with another variable than 'dep2'" + } + ], + "tools": { + "cmake": ">=3.14" + } +} |