Skip to content

Compiler tests on dependencies overridden by parent project #11223

Answered by eli-schwartz
bgilbert asked this question in Q&A
Discussion options

You must be logged in to vote

I'm hoping for something like:
[...]

if jpeg.external()

Yes -- it is called jpeg.type_name() and for dependencies produced by declare_dependency from a subproject, it will be == 'internal'.

However, you may be able to get away with not doing compiler checks at all, if you can guard the dependency() with a version check that covers all versions where that function was added.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bgilbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants