summaryrefslogtreecommitdiffstats
path: root/Modules/ProcessorCount.cmake
Commit message (Collapse)AuthorAgeFilesLines
* ProcessorCount: Use ERROR_QUIET with execute_process (#11302)David Cole2011-03-181-10/+25
| | | | | | | | | | | | | | | | | Also, comment out all "debugging" calls to message() that helped us interpret the output on other platforms when running on the dashboard clients. Using ERROR_QUIET avoids unnecessary stderr output while calling external tools to determine the processor count. If there's an error parsing the output, we set the count to 0 anyhow. Also, the test will fail on a CMake dashboard run if the count comes back equal to 0. Now that the code is "done"-ish, remove the debugging output. Expect no output on stdout or stderr when calling the ProcessorCount function from now on.
* ProcessorCount: Add support for remaining platforms (#11302)David Cole2011-03-151-24/+103
| | | | Including AIX, cygwin, FreeBSD, HPUX, IRIX, OpenBSD and Sun.
* Add ProcessorCount support for QNX via pidin. (#11302)David Cole2011-03-151-2/+22
| | | | | Thanks to Rolf Eike Beer <eike@sf-mail.de> for the code snippet parsing the pidin output.
* If getconf returns empty output, try cpuinfo. (#11302)David Cole2011-03-151-8/+17
| | | | | | | Also, add message output (temporarily) for gathering data on all the dashboard machines. After the test runs on the overnight dashboards tonight, I'll comment out the message output and commit/push again.
* Add correct module notice header.David Cole2011-03-151-2/+2
| | | | Fixes failing ModuleNotices test.
* Add module ProcessorCount.cmake (#11302)Michael Wild2011-03-151-0/+60
Credit goes to David Cole ( http://www.kitware.com/blog/home/post/63 ). Also add a script-based test of the new module. Signed-off-by: Michael Wild <themiwi@users.sourceforge.net>