h2get icon indicating copy to clipboard operation
h2get copied to clipboard

Enable to build with ninja

Open uk-ar opened this issue 4 years ago • 0 comments

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 https://github.com/h2o/h2o/pull/2504

uk-ar avatar May 20 '21 19:05 uk-ar