Skip to content

Enable to build with ninja#22

Open
uk-ar wants to merge 1 commit intodeweerdt:masterfrom
uk-ar:support_ninja_build
Open

Enable to build with ninja#22
uk-ar wants to merge 1 commit intodeweerdt:masterfrom
uk-ar:support_ninja_build

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