diff options
author | Eric Berge <ericmberge@gmail.com> | 2014-06-10 15:26:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-06-10 17:27:58 (GMT) |
commit | dbc0f63d11a36192a78bd31ac744337a73f53502 (patch) | |
tree | 645d7d2f004b4d3efba071570f8a382cf4b4e252 /Modules | |
parent | b1380ccc4b7bcf5acc07f89468d78852e179e484 (diff) | |
download | CMake-dbc0f63d11a36192a78bd31ac744337a73f53502.zip CMake-dbc0f63d11a36192a78bd31ac744337a73f53502.tar.gz CMake-dbc0f63d11a36192a78bd31ac744337a73f53502.tar.bz2 |
ProcessorCount: Update for HPUX 11iv3
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/ProcessorCount.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/ProcessorCount.cmake b/Modules/ProcessorCount.cmake index e034a28..8f21adf 100644 --- a/Modules/ProcessorCount.cmake +++ b/Modules/ProcessorCount.cmake @@ -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) |