2022-02-28 22:56:38 +00:00
|
|
|
include(ProcessorCount)
|
|
|
|
ProcessorCount(N)
|
2022-09-02 08:52:15 +00:00
|
|
|
# Executing echo here allows us to print to the standard output,
|
|
|
|
# to separate the processor count from potential errors
|
|
|
|
execute_process(COMMAND "${CMAKE_COMMAND}" -E echo "${N}")
|