summaryrefslogtreecommitdiffstats
path: root/Modules/ProcessorCount.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Simplify CMake per-source license noticesBrad King2016-09-271-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* ProcessorCount: Implement with psrinfo tool on recent SunOS versionsMarc Chevrier2015-09-281-8/+21
|
* ProcessorCount: Update for HPUX 11iv3Eric Berge2014-06-101-0/+4
|
* ProcessorCount: use mpsched on HPUX if machinfo is not presentRolf Eike Beer2014-03-281-0/+12
| | | | Co-Author: Gerhard Grimm <gerhard.grimm@detec.com>
* ProcessorCount: make it work on HaikuRolf Eike Beer2013-12-021-0/+14
|
* Convert builtin help to reStructuredText source filesKitware Robot2013-10-151-19/+30
| | | | | | | | Run the convert-help.bash script to convert documentation: ./convert-help.bash "/path/to/CMake-build/bin" Then remove it.
* ProcessorCount: Mark find_program vars as advanced (#13236)David Cole2012-08-171-0/+7
| | | | | After each find_program call, mark_as_advanced each find result variable to avoid polluting the cache with non-advanced variables
* 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>