Find 'include' files from *not* meson project #12815
-
Hi *! We have the following situation. I tried the following solution:
This worked as expected ---- BUT when i use this project as a dependency to an other project I get a lot of info and warnings:
How can I use the includes from local project, also when this one is used as a subproject? I wanna fix this warning, because in future releases this will be an error! Thank you so much, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It sounds like your project structure is:
And potentially:
I would suggest making drivers-project into a "wrapped" meson project. Give it a really simple meson.build that simply produces a drivers_dep = declare_dependency(include_directories: ['inc']) and you can get it with |
Beta Was this translation helpful? Give feedback.
-
Thank you very much! It's working for our project! |
Beta Was this translation helpful? Give feedback.
It sounds like your project structure is:
And potentially:
I would suggest making drivers-project into a "wrapped" meson project. Give it a really simple meson.build that simply produces a
and you can get it with
drivers_dep = subproject('drivers-project').get_variable('drivers_dep')
and use it as a dependency inelif compiler.has_header('drv/myheader.h', dependencies: drivers_dep)
.