summaryrefslogtreecommitdiff
path: root/Meta/CMake/processor-count.cmake
blob: f0bf79f929a4529ec4109d3a99fb9c6e562e10b4 (plain)
1
2
3
4
5
include(ProcessorCount)
ProcessorCount(N)
# 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}")