Merge topic 'hpux-ProcessorCount'

dbc0f63d ProcessorCount: Update for HPUX 11iv3
This commit is contained in:
Brad King 2014-06-12 11:28:46 -04:00 committed by CMake Topic Stage
commit 031ee74a63
1 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,10 @@ function(ProcessorCount var)
OUTPUT_VARIABLE machinfo_output)
string(REGEX MATCHALL "Number of CPUs = ([0-9]+)" procs "${machinfo_output}")
set(count "${CMAKE_MATCH_1}")
if(NOT count)
string(REGEX MATCHALL "([0-9]+) logical processors" procs "${machinfo_output}")
set(count "${CMAKE_MATCH_1}")
endif()
#message("ProcessorCount: trying machinfo '${ProcessorCount_cmd_machinfo}'")
else()
find_program(ProcessorCount_cmd_mpsched mpsched)