aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-03-28 09:33:11 -0700
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2019-03-29 21:27:54 +0000
commitb791ede1b1a310e073c59a391fbc1a86e5e7f64e (patch)
tree23c67bf1e7632c7861ec9791a4f055e7be593c27
parentc0d287c1bff3ab4fec57e8fb664f5d738a857113 (diff)
downloadmeson-b791ede1b1a310e073c59a391fbc1a86e5e7f64e.zip
meson-b791ede1b1a310e073c59a391fbc1a86e5e7f64e.tar.gz
meson-b791ede1b1a310e073c59a391fbc1a86e5e7f64e.tar.bz2
tests: modify partial_dependency test to cover a bug
Currently if a dependency is added to declare_dependency, and the top dependency doesn't have an attribute that the subdependency does, it wont be propagated by subdependency.
-rw-r--r--test cases/common/189 partial dependency/declare_dependency/meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/test cases/common/189 partial dependency/declare_dependency/meson.build b/test cases/common/189 partial dependency/declare_dependency/meson.build
index 86e2608..3783f66 100644
--- a/test cases/common/189 partial dependency/declare_dependency/meson.build
+++ b/test cases/common/189 partial dependency/declare_dependency/meson.build
@@ -12,9 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+dec_sub_dep = declare_dependency(
+ include_directories : include_directories('headers'),
+)
+
dec_dep = declare_dependency(
sources : files('headers/foo.c'),
- include_directories : include_directories('headers'),
+ dependencies : dec_sub_dep,
)
sub_dep = dec_dep.partial_dependency(includes : true)