{"action":"created","issue":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/321","labels_url":"https://api.github.com/repos/mesonbuild/meson/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/mesonbuild/meson/issues/321/comments","events_url":"https://api.github.com/repos/mesonbuild/meson/issues/321/events","html_url":"https://github.com/mesonbuild/meson/issues/321","id":120006521,"number":321,"title":"Recursive declare_dependency()","user":{"login":"rhd","id":3422847,"avatar_url":"https://avatars.githubusercontent.com/u/3422847?v=3","gravatar_id":"","url":"https://api.github.com/users/rhd","html_url":"https://github.com/rhd","followers_url":"https://api.github.com/users/rhd/followers","following_url":"https://api.github.com/users/rhd/following{/other_user}","gists_url":"https://api.github.com/users/rhd/gists{/gist_id}","starred_url":"https://api.github.com/users/rhd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhd/subscriptions","organizations_url":"https://api.github.com/users/rhd/orgs","repos_url":"https://api.github.com/users/rhd/repos","events_url":"https://api.github.com/users/rhd/events{/privacy}","received_events_url":"https://api.github.com/users/rhd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-02T18:29:19Z","updated_at":"2016-01-09T14:55:11Z","closed_at":null,"body":"Hi Jussi,\r\n\r\nThis is somewhat related to #304 - should this work? I ran into this the other day. I have a library that depends on another library and there is a `declare_dependency` for both of them.\r\n\r\n```\r\nopencl_inc = include_directories('/usr/local/opencl12', '/opt/AMDAPP/include')\r\nopencl_dep = declare_dependency(\r\n    include_directories: opencl_inc,\r\n    dependencies: find_library('OpenCL', dirs:'/usr/lib64'),\r\n)\r\n\r\nanother_dep = declare_dependency(\r\n    include_directories: another_inc,\r\n    dependencies: opencl_dep\r\n)\r\n\r\nfoo = executable('foo', src,\r\n    dependencies:[another_dep],\r\n)\r\n```\r\n\r\nThis is the error:\r\n```\r\nDependencies must be external deps\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/comments/170245129","html_url":"https://github.com/mesonbuild/meson/issues/321#issuecomment-170245129","issue_url":"https://api.github.com/repos/mesonbuild/meson/issues/321","id":170245129,"user":{"login":"jpakkane","id":4079821,"avatar_url":"https://avatars.githubusercontent.com/u/4079821?v=3","gravatar_id":"","url":"https://api.github.com/users/jpakkane","html_url":"https://github.com/jpakkane","followers_url":"https://api.github.com/users/jpakkane/followers","following_url":"https://api.github.com/users/jpakkane/following{/other_user}","gists_url":"https://api.github.com/users/jpakkane/gists{/gist_id}","starred_url":"https://api.github.com/users/jpakkane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpakkane/subscriptions","organizations_url":"https://api.github.com/users/jpakkane/orgs","repos_url":"https://api.github.com/users/jpakkane/repos","events_url":"https://api.github.com/users/jpakkane/events{/privacy}","received_events_url":"https://api.github.com/users/jpakkane/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T14:55:11Z","updated_at":"2016-01-09T14:55:11Z","body":"Can you try the linked MR?"}}