diff options
author | David Cole <david.cole@kitware.com> | 2010-11-08 14:37:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-03-15 19:07:30 (GMT) |
commit | 3430955d5f207232ed0ada83d3e6519ae5c908eb (patch) | |
tree | 65c04a781d8613335ea50e9d29406501e1ed1216 /Tests | |
parent | 4d6418f68353f888e08b42b86ea9eb7e2e2781e3 (diff) | |
download | CMake-3430955d5f207232ed0ada83d3e6519ae5c908eb.zip CMake-3430955d5f207232ed0ada83d3e6519ae5c908eb.tar.gz CMake-3430955d5f207232ed0ada83d3e6519ae5c908eb.tar.bz2 |
Add ProcessorCount support for QNX via pidin. (#11302)
Thanks to Rolf Eike Beer <eike@sf-mail.de> for the code snippet
parsing the pidin output.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeTests/ProcessorCountTest.cmake.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/CMakeTests/ProcessorCountTest.cmake.in b/Tests/CMakeTests/ProcessorCountTest.cmake.in index 0815fd8..ac7a1da 100644 --- a/Tests/CMakeTests/ProcessorCountTest.cmake.in +++ b/Tests/CMakeTests/ProcessorCountTest.cmake.in @@ -3,7 +3,11 @@ 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 needed in ProcessorCount.cmake?") +- Additional code for this platform needed in ProcessorCount.cmake?") endif() |