Install created lib to specific folder in build/ doesn't seem to work? #10088
-
I'm trying to make sure this library ends up in build/lib but no matter what I try, it always ends in src/ (the meson.build file this comes from also src/). I've tried all sorts of variation on this logic and have also tried passing the libdir as an arg to meson.configure() in Conan, with no luck. I've also tried meson.current_source_dir() as well as source_root(). I want the final file structure after the packaging is complete to look like this:
lib should not exist in the source tree, it should be created when the lib is created only. No matter what I try, the build directory ends up like this:
which means my packaging step doesn't find the lib because it looks for lib/ to copy it out of. I want the library to end up How can I get the lib into a folder dynamically at build time into a folder called lib/ in the build directory? install_dir doesn't seem to work, or at the very least is feels very unintuitive. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Here is another attempt with the some logging:
Logs print:
No lib/ folder is created, and the library still gets placed into src/. |
Beta Was this translation helpful? Give feedback.
-
Did you run |
Beta Was this translation helpful? Give feedback.
Did you run
meson install
to install your library? Or better why do you want to install it into your builddir?