-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error in get_option
for a subproject
#122
Comments
Hey, thanks for the bug report! Could you provide a few more details? muon appears to work as expected given a minimal reproducer:
project('project')
message(get_option('opt'))
subproject('a')
option('opt', type: 'string', value: '')
project('subproject')
message(get_option('opt'))
option('opt', type: 'string', yield: true, value: '')
I also tried to repro with radare2 but I don't think the code you are working with is available yet? It isn't on master at least. |
Hi, it works perfectly now, thanks a lot for the explanation, here it the PR: radareorg/radare2#23932. I simply forgot about defining Once again thanks a ton and sorry for the hussle, I am not so "meson-savvy" 😅 |
No problem. I'm not sure what you were doing before but you must each project's options separately, even if they are shared. I can't figure out how meson was working, for me it appears to give the same error muon does:
I'll close this issue though since it seems like you figured it out! |
It seems like, muon can't yield superproject options to subprojects. For instance, having specified
plugins
option in radare2 project, I still get the following error when I try toget_option
from capstone-v5 subproject:Is there any way to resolve it? Meson in this case works fine and transmits the option down to subproject.
The text was updated successfully, but these errors were encountered: