<div dir="ltr">If you are using a new style command-based ctest -S script, you can:<br><div><br></div><div>SET(CTEST_BUILD_FLAGS -j8)</div><div><br></div><div>before using the CTEST_BUILD command.</div><div><br></div><div>
<br><div class="gmail_quote">On Mon, Aug 18, 2008 at 4:02 PM, Moreland, Kenneth <span dir="ltr"><<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Is there a way to add arguments to the invocation of make? In particular, I<br>
want to add the -j flag to do parallel compiles. I tried setting the<br>
CMAKE_MAKE_PROGRAM variable to "/usr/bin/make -j8", but I get the following<br>
error when I try to compile.<br>
<br>
CMake Error: Generator: execution of make failed. Make command was:<br>
/usr/bin/make\ -j8 "cmTryCompileExec/fast"<br>
<br>
I'm pretty sure this used to work, but it seems to have stopped working in<br>
Cmake 2.6.<br>
<br>
-Ken<br>
<br>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div></div>