You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I don't know if the title captures the problem, so I'll change it to make it clearer if needed. I'm trying to compile a Rust project, which uses bindgen to use a C library. I can use the C library as a wrap dependency, by writing a simple [wrap-git] file and placing it in the subprojects/ directory. However, at that point I can no longer use the Rust module to use bindgen, because the header file I'm trying to provide is inside the subprojects dir, so inaccessible. I see from the CMake module manual
Using CMake subprojects is similar to using the "normal" Meson subprojects. They also have to be located in the subprojects directory.
So, does this mean that currently we can't use Meson to build a CMake project outside of subprojects, right? How can I still use bindgen? I made it work by also cloning the project in the source tree, but then I woul download the same repo twice. Should I write an helper header that includes something from subproject? Would this work?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I don't know if the title captures the problem, so I'll change it to make it clearer if needed. I'm trying to compile a Rust project, which uses bindgen to use a C library. I can use the C library as a wrap dependency, by writing a simple
[wrap-git]
file and placing it in thesubprojects/
directory. However, at that point I can no longer use the Rust module to use bindgen, because the header file I'm trying to provide is inside the subprojects dir, so inaccessible. I see from the CMake module manualSo, does this mean that currently we can't use Meson to build a CMake project outside of
subprojects
, right? How can I still use bindgen? I made it work by also cloning the project in the source tree, but then I woul download the same repo twice. Should I write an helper header that includes something fromsubproject
? Would this work?Beta Was this translation helpful? Give feedback.
All reactions