summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/ProcessorCountTest.cmake.in
blob: ac7a1da9532220f17a2cabc093475aa95394e1b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
include(ProcessorCount)

ProcessorCount(processor_count)
message("processor_count='${processor_count}'")

if(NOT processor_count MATCHES "^[0-9]+$")
  message(FATAL_ERROR "ProcessorCount function returned a non-integer")
endif()

if(processor_count EQUAL 0)
  message(FATAL_ERROR "could not determine number of processors
- Additional code for this platform needed in ProcessorCount.cmake?")
endif()