Skip to content

Wrapping a project that has includes directory different than installed #10379

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

You must be logged in to vote

The best fix would be if upstream aligned the source tree layout to the "real" header paths.

The only other solution is that somehow, the files MUST be moved during the build, because the compiler itself needs to have a disk location with the right structure and there is no getting around this.

Typically, wraps would perform that move by using configure_file(input: '../foo.h', output: 'foo.h', copy: true) to perform the copy at configure time. There are a couple that do this. Check the WrapDB repository for files which contain the reference include-workaround-meson.

Replies: 1 comment 1 reply

Comment options

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

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