ladybird/Meta/CMake/processor-count.cmake
2022-10-16 17:49:18 +02:00

6 lines
222 B
CMake

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