Skip to content

How to build a subproject which depends on user provided header files? #11809

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

You must be logged in to vote

Does it have to be physically present in the subproject or is adding the header as an include_directories to the same target that also tries to depend on the subproject, work?

In the former case you could try adding the header file path as a subproject option, and copy it over via a super hacky run_command. It won't automatically update though.

Can the header be generated using options or does it require fully custom implementation? If it's just a matter of setting configuration defines I'd just add a bunch of options to toggle each setting.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@crazybolillo
Comment options

Answer selected by crazybolillo
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