Newer
Older
minerva / Meta / CMake / processor-count.cmake
@minerva minerva on 13 Jul 222 bytes Initial commit
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}")