On Wed, Mar 4, 2009 at 10:55 AM, Adolfo Rodríguez <[email protected]> wrote:

> Hi,
>
> I was wondering if it's possible to specify with cmake default options to
> the make command, i.e., when I type "make foo", it would be equivalent to
> "make -j foo", or "make -C some/path foo". My first impression is that
> messing around with what "make" does is out of the scope of cmake (and maybe
> should not be messed around with ;-) ).


If the goal is to at the shell change what the make command does, perhaps
you could use aliases or shell functions?

alias make="make -j5"

function mymake()
{
   make -C /my/build/tree/is/usually/here
}

function myjmake()
{
   make -j $1 -C /my/build/tree/is/usually/here
}
myjmake 500 # lotsa cores

-- 
Philip Lowman
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to