[CMake] Make program arguments

Moreland, Kenneth kmorel at sandia.gov
Mon Aug 18 17:02:18 EDT 2008


True, but I'm actually currently using the Eclipse generator right now, and
Eclipse uses the CMake value for the make program (and arguments).  I can
change the make program in the Eclipse IDE, but it seems to get reset every
time I re-run CMake.

-Ken


On 8/18/08 2:17 PM, "Andreas Pakulat" <apaku at gmx.de> wrote:

> On 18.08.08 14:02:29, Moreland, Kenneth 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.
>
> CMake doesn't really call make, you call make from the commandline in
> the builddir you created so you can use any argument to make that you
> want.
>
> Andreas
>
> --
> Don't read any sky-writing for the next two weeks.
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>




More information about the CMake mailing list