diff options
Diffstat (limited to 'Tests/CMakeTests/ProcessorCountTest.cmake.in')
-rw-r--r-- | Tests/CMakeTests/ProcessorCountTest.cmake.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/CMakeTests/ProcessorCountTest.cmake.in b/Tests/CMakeTests/ProcessorCountTest.cmake.in new file mode 100644 index 0000000..0815fd8 --- /dev/null +++ b/Tests/CMakeTests/ProcessorCountTest.cmake.in @@ -0,0 +1,9 @@ +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() |