mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-04 22:29:40 -06:00
Credit goes to David Cole ( http://www.kitware.com/blog/home/post/63 ). Also add a script-based test of the new module. Signed-off-by: Michael Wild <themiwi@users.sourceforge.net>
10 lines
258 B
CMake
10 lines
258 B
CMake
include(ProcessorCount)
|
|
|
|
ProcessorCount(processor_count)
|
|
message("processor_count='${processor_count}'")
|
|
|
|
if(processor_count EQUAL 0)
|
|
message(FATAL_ERROR "could not determine number of processors
|
|
- Additional code needed in ProcessorCount.cmake?")
|
|
endif()
|