> Is there a way to add arguments to the invocation of make?  In particular, I
> want to add the -j flag to do parallel compiles.  I tried setting the
> CMAKE_MAKE_PROGRAM variable to "/usr/bin/make -j8", but I get the following
> error when I try to compile.
> 
> CMake Error: Generator: execution of make failed. Make command was:
> /usr/bin/make\ -j8 "cmTryCompileExec/fast"
> 
> I'm pretty sure this used to work, but it seems to have stopped working in
> Cmake 2.6.
I don't know of a way within CMake but you can set the MAKEFLAGS
environment variable if it's something you don't mind added to every
invocation. Another alternative would be to write a script that added
the arguments you wanted and use it for the CMAKE_MAKE_PROGRAM.

        David


_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to