Re: [CMake] Adding a custom line to CMake's makefiles?

2011-09-09 Thread Clifford Yapp
I can finally give a good concrete case where I might need to do this (or need some other very clever solution). I have created a distcheck command for BRL-CAD that has a lot of responsibilities, including doing a complete configure and build of BRL-CAD from a source archive expanded from a CPack

Re: [CMake] Adding a custom line to CMake's makefiles?

2011-09-09 Thread Mike Wittman
If you are building on Linux, try MAKEFLAGS=j8 make distcheck I have successfully used the MAKEFLAGS environment variable to propagate parallel build invocations through scripts that invoke make with fixed options. -Mike On 09/09/2011 09:21 AM, Clifford Yapp wrote: I can finally give a

Re: [CMake] Adding a custom line to CMake's makefiles?

2011-09-09 Thread Jean-Christophe Fillion-Robin
Reading through make documentation, seems setting -jx to MAKEFLAGS is a no-op. *The `-j' option is a special case (see section Parallel Executionhttp://theory.uwinnipeg.ca/localfiles/infofiles/make/make_47.html#SEC46). If you set it to some numeric value, `-j 1' is always put into

Re: [CMake] Adding a custom line to CMake's makefiles?

2011-09-09 Thread Mike Wittman
Yes, but only when setting MAKEFLAGS from within a Makefile. It appears the rules do not apply when MAKEFLAGS is set by the invoking shell. (And actually, current GNU make handles parallel execution differently on Linux, using a job server that all make subprocesses use to coordinate

Re: [CMake] Adding a custom line to CMake's makefiles?

2011-09-09 Thread Clifford Yapp
Thanks Mike, good to know! David actually solved my problem for me with the generator based conditional and the $(MAKE) variable, but that's a nifty workaround to have tucked away. Cheers, CY On Fri, Sep 9, 2011 at 3:37 PM, Mike Wittman m...@headwave.com wrote: ** If you are building on

[CMake] Adding a custom line to CMake's makefiles?

2011-02-02 Thread Clifford Yapp
Is there any way to customize the Makefile output from CMake to include user-defined lines (say, something like #include Makefile.inc) at the end of each Make file? Cheers, CY ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Adding a custom line to CMake's makefiles?

2011-02-02 Thread Michael Hertling
On 02/02/2011 03:34 PM, Clifford Yapp wrote: Is there any way to customize the Makefile output from CMake to include user-defined lines (say, something like #include Makefile.inc) at the end of each Make file? With GNU Make, you might do the following: CMAKE_MINIMUM_REQUIRED(VERSION 2.8