--- Modules/ProcessorCount.cmake.orig 2021-07-10 00:25:42 UTC +++ Modules/ProcessorCount.cmake @@ -12,7 +12,7 @@ Determine the number of processors/cores and save valu 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, Linux, macOS, QNX, Sun and +for AIX, cygwin, BSDSUniX, FreeBSD, HPUX, Linux, macOS, QNX, Sun and Windows. This function is guaranteed to return a positive integer (>=1) if it @@ -56,7 +56,7 @@ function(ProcessorCount var) endif() if(NOT count) - # Mac, FreeBSD, OpenBSD (systems with sysctl): + # Mac, BSDSUniX, FreeBSD, OpenBSD (systems with sysctl): find_program(ProcessorCount_cmd_sysctl sysctl PATHS /usr/sbin /sbin) mark_as_advanced(ProcessorCount_cmd_sysctl)