Christian Ehrlicher wrote:
Von: Milan Dorak
I can't find in documentation or anywhere else, how can i pass argument to make command.
I need 'make -j 3'. don't care if it's in CMakeLists.txt or CTest script.

Since when does cmake executes make directly? It's only creating makefiles for 
make...


Christian

This is done when using ctest to build for testing.


In a "non-declarative" ctest script you can do this:

SET (CTEST_BUILD_COMMAND "make -i -j8")

In a declarative ctest script you can add this to the cache:

MAKECOMMAND:STRING=/usr/bin/make -i -j2


-Bill
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to