<div class="gmail_quote">On Wed, Mar 4, 2009 at 10:55 AM, Adolfo Rodríguez <span dir="ltr"><<a href="mailto:dofo79@gmail.com">dofo79@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>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 ;-) ).</blockquote>
<div><br>If the goal is to at the shell change what the make command does, perhaps you could use aliases or shell functions?<br><br>alias make="make -j5"<br><br>function mymake()<br>{<br> make -C /my/build/tree/is/usually/here<br>
}<br></div></div><br>function myjmake()<br>{<br> make -j $1 -C /my/build/tree/is/usually/here<br>}<br>myjmake 500 # lotsa cores<br><br>-- <br>Philip Lowman<br>