diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2018-10-06 08:11:21 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-10-07 19:35:11 +0300 |
commit | 091e079354fe6322823048c9debd1a13bdc7e37f (patch) | |
tree | 7d68d76a5a19bab2265704dcf93eadcb20fea017 /test cases/failing | |
parent | 047db1c64cd5b7ef070f73e1d580e36236ac9613 (diff) | |
download | meson-091e079354fe6322823048c9debd1a13bdc7e37f.zip meson-091e079354fe6322823048c9debd1a13bdc7e37f.tar.gz meson-091e079354fe6322823048c9debd1a13bdc7e37f.tar.bz2 |
dependency variable from subproject could be not-found
When using a subproject as fallback for a required dependency, we should
check if the dependency object we get from the subproject is found.
Diffstat (limited to 'test cases/failing')
-rw-r--r-- | test cases/failing/90 subproj not-found dep/meson.build | 2 | ||||
-rw-r--r-- | test cases/failing/90 subproj not-found dep/subprojects/somesubproj/meson.build | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test cases/failing/90 subproj not-found dep/meson.build b/test cases/failing/90 subproj not-found dep/meson.build new file mode 100644 index 0000000..2b17df1 --- /dev/null +++ b/test cases/failing/90 subproj not-found dep/meson.build @@ -0,0 +1,2 @@ +project('dep-test') +missing = dependency('', fallback: ['somesubproj', 'notfound_dep'], required: true) diff --git a/test cases/failing/90 subproj not-found dep/subprojects/somesubproj/meson.build b/test cases/failing/90 subproj not-found dep/subprojects/somesubproj/meson.build new file mode 100644 index 0000000..5f451f4 --- /dev/null +++ b/test cases/failing/90 subproj not-found dep/subprojects/somesubproj/meson.build @@ -0,0 +1,3 @@ +project('dep', 'c') + +notfound_dep = dependency('', required : false) |