ladybird/Meta/CMake/processor-count.cmake

6 lines
222 B
CMake
Raw Normal View History

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}")