Files
CMake/Tests/CMakeTests/ProcessorCountTest.cmake.in
Michael Wild abbaa123aa Add module ProcessorCount.cmake (#11302)
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>
2011-03-15 15:07:30 -04:00

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()