ProcessorCount: Update for HPUX 11iv3

This commit is contained in:
Eric Berge 2014-06-10 10:26:24 -05:00 committed by Brad King
parent b1380ccc4b
commit dbc0f63d11
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)