diff options
author | Brad King <brad.king@kitware.com> | 2019-01-11 18:50:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-11 18:50:46 (GMT) |
commit | beb991110d84e9c0a6b1339e22fa98284b08bac9 (patch) | |
tree | 2a9c5cfec91b5c839a18477c02f0d307c4827be6 /Modules/ProcessorCount.cmake | |
parent | 5a283b79e5fe1739142cc513a9a701855849b2f8 (diff) | |
download | CMake-beb991110d84e9c0a6b1339e22fa98284b08bac9.zip CMake-beb991110d84e9c0a6b1339e22fa98284b08bac9.tar.gz CMake-beb991110d84e9c0a6b1339e22fa98284b08bac9.tar.bz2 |
Remove now-unused code once used on IRIX
We dropped support for IRIX as a host platform long ago.
Remove some leftover code.
Diffstat (limited to 'Modules/ProcessorCount.cmake')
-rw-r--r-- | Modules/ProcessorCount.cmake | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/Modules/ProcessorCount.cmake b/Modules/ProcessorCount.cmake index 05f56d8..e4b4e53 100644 --- a/Modules/ProcessorCount.cmake +++ b/Modules/ProcessorCount.cmake @@ -12,7 +12,7 @@ Determine the number of processors/cores and save value in ${var} Sets the variable named ${var} to the number of physical cores available on the machine if the information can be determined. Otherwise it is set to 0. Currently this functionality is implemented -for AIX, cygwin, FreeBSD, HPUX, IRIX, Linux, macOS, QNX, Sun and +for AIX, cygwin, FreeBSD, HPUX, Linux, macOS, QNX, Sun and Windows. This function is guaranteed to return a positive integer (>=1) if it @@ -115,22 +115,6 @@ function(ProcessorCount var) endif() if(NOT count) - # IRIX (systems with hinv): - find_program(ProcessorCount_cmd_hinv hinv - PATHS /sbin) - mark_as_advanced(ProcessorCount_cmd_hinv) - if(ProcessorCount_cmd_hinv) - execute_process(COMMAND ${ProcessorCount_cmd_hinv} - ERROR_QUIET - OUTPUT_STRIP_TRAILING_WHITESPACE - OUTPUT_VARIABLE hinv_output) - string(REGEX MATCHALL "([0-9]+) .* Processors" procs "${hinv_output}") - set(count "${CMAKE_MATCH_1}") - #message("ProcessorCount: trying hinv '${ProcessorCount_cmd_hinv}'") - endif() - endif() - - if(NOT count) # AIX (systems with lsconf): find_program(ProcessorCount_cmd_lsconf lsconf PATHS /usr/sbin) |