Replies: 1 comment 1 reply
-
Your meson build should definitely definitely not assume some structure outside of it. Perhaps you might want to look into subprojects? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Working in Windows 10, suppose I have a folder next to my meson project folder, which has a library I need, like this:
Then in meson I get the library using the compiler like this:
This works, but how can I change this so, that it works regardless of what path is in place of
C:/Projects
, considering that find_library requires an absolute path? So I need something likecc.find_library('mylib', dirs : [dirs : [meson.global_source_root() + '../MyLibrary/lib'])
but this does not work with the
..
What would be the correct way to accomplish this?
EDIT:
Answering to myself, need one more slash before the two dots like this:
cc.find_library('mylib', dirs : [dirs : [meson.global_source_root() + '/../MyLibrary/lib'])
Well, let's hope this will be helpful for someone.
Beta Was this translation helpful? Give feedback.
All reactions