Re: [CMake] How to determine the number of processors available from CMake code

2010-10-08 Thread Michael Wild
Would be nice to have this as a module: http://cmake.org/Bug/view.php?id=11302 On 8. Oct, 2010, at 24:41 , David Cole wrote: > Thanks! > > On Thu, Oct 7, 2010 at 6:08 PM, Mark Moll wrote: > >> On OS X, this command might be easier / faster: >> >> sysctl -n hw.ncpu >> >> On Oct 7, 2010, at

Re: [CMake] How to determine the number of processors available from CMake code

2010-10-07 Thread David Cole
Thanks! On Thu, Oct 7, 2010 at 6:08 PM, Mark Moll wrote: > On OS X, this command might be easier / faster: > > sysctl -n hw.ncpu > > On Oct 7, 2010, at 3:50 PM, David Cole wrote: > > > I just posted a short blog article demonstrating how to figure out the > number of processors available for a "

[CMake] How to determine the number of processors available from CMake code

2010-10-07 Thread David Cole
I just posted a short blog article demonstrating how to figure out the number of processors available for a "make -j" or a scripted ctest_build call (with the "Unix Makefiles" generator) on Linux, Mac and Windows. Please let me know if you have any ideas for how it might be improved or extended. h