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

Enable to build with ninja #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

uk-ar
Copy link

@uk-ar uk-ar commented May 20, 2021

Some cmake generators like Ninja cannot handle implicitly generated files, failing with messages like (in case of Ninja):

ninja: error: 'mruby/host/lib/libmruby.a', needed by 'h2get', missing and no known rule to make it

The solution is just to define files with BYPRODUCTS libmruby.a libonigumo.a in ADD_CUSTOM_TARGET.
With this patch, cmake -G Ninja -Bb . && cmake --build b works!

See also
h2o/h2o#2504

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.

1 participant