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.
This commit is contained in:
parent
c0d287c1bf
commit
b791ede1b1
|
@ -12,9 +12,13 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
dec_sub_dep = declare_dependency(
|
||||||
|
include_directories : include_directories('headers'),
|
||||||
|
)
|
||||||
|
|
||||||
dec_dep = declare_dependency(
|
dec_dep = declare_dependency(
|
||||||
sources : files('headers/foo.c'),
|
sources : files('headers/foo.c'),
|
||||||
include_directories : include_directories('headers'),
|
dependencies : dec_sub_dep,
|
||||||
)
|
)
|
||||||
|
|
||||||
sub_dep = dec_dep.partial_dependency(includes : true)
|
sub_dep = dec_dep.partial_dependency(includes : true)
|
||||||
|
|
Loading…
Reference in New Issue