ProcessorCount: Update for HPUX 11iv3
This commit is contained in:
parent
b1380ccc4b
commit
dbc0f63d11
|
@ -103,6 +103,10 @@ function(ProcessorCount var)
|
||||||
OUTPUT_VARIABLE machinfo_output)
|
OUTPUT_VARIABLE machinfo_output)
|
||||||
string(REGEX MATCHALL "Number of CPUs = ([0-9]+)" procs "${machinfo_output}")
|
string(REGEX MATCHALL "Number of CPUs = ([0-9]+)" procs "${machinfo_output}")
|
||||||
set(count "${CMAKE_MATCH_1}")
|
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}'")
|
#message("ProcessorCount: trying machinfo '${ProcessorCount_cmd_machinfo}'")
|
||||||
else()
|
else()
|
||||||
find_program(ProcessorCount_cmd_mpsched mpsched)
|
find_program(ProcessorCount_cmd_mpsched mpsched)
|
||||||
|
|
Loading…
Reference in New Issue