ilyachur/cmake4vim

Pass custom flags to make command

Closed this issue · 4 comments

(I know the readme mentions this exact example but I can't seem to find the option)

Is your feature request related to a problem? Please describe.
I can't seem to build in parallel using e.g. -j12, slowing down my development experience

Describe the solution you'd like
The ability to pass args to the make step

Describe alternatives you've considered
I don't think you can pass this arg to cmake and bake it in the Makefile

Are you looking for this?

g:make_arguments allows to set custom parameters for make command. Default is empty. If variable is empty, plugin launches make without arguments.

Also, you could always use the shell variable $MAKE_ARGS.

E.g.

:let $MAKE_ARGS="-j8"
:CMakeBuild

Hi @HugoPeters1024

I think it is better to use the g:make_arguments plugin option to specify any build specific options.

Wow not sure how I missed that, thanks for helping out an ignoranus like me :P

@HugoPeters1024 I'm too lazy for gmail so - if you haven't tried it out already, check out ninja, it is faster than make for incremental builds and it's parallel by default.