[CMake] Make program arguments

David Cole david.cole at kitware.com
Mon Aug 18 16:50:52 EDT 2008


If you are using a new style command-based ctest -S script, you can:

SET(CTEST_BUILD_FLAGS -j8)

before using the CTEST_BUILD command.


On Mon, Aug 18, 2008 at 4:02 PM, Moreland, Kenneth <kmorel at sandia.gov>wrote:

> 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.
>
> -Ken
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080818/fb26fada/attachment.htm>


More information about the CMake mailing list