Skip to content
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

Fix meson subproject inclusion by making options project specific. #153

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

szanni
Copy link
Contributor

@szanni szanni commented Nov 14, 2022

Use add_project_*_arguments instead of add_global_*_arguments.

Fixes #152

This now breaks the building of cmocka. Guess this needs some further thought after all... possibly just disable the building of tests when being built as a submodule?

Use `add_project_*_arguments` instead of `add_global_*_arguments`.
Use the new meson 63 `diff_files` mechanism to patch the cmocka
meson.build, building it as a fat binary and specifying the
minimum OSX SDK version.
@szanni
Copy link
Contributor Author

szanni commented Nov 15, 2022

The second commit adds a diff file to patch the cmocka meson.build and adds the minimum SDK version and fat binary directives manually. This would require meson 63.
It works, but I am unsure if this is the way to go. It makes it even more complicated for superprojects to change these setting, should they for example not want a fat binary.

Failing of the CI seems related to brew, not the patch from what I can tell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

darwin: Build fails when included as a meson subproject.
1 participant