diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2013-06-15 05:38:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-06-19 12:46:37 (GMT) |
commit | bb71a3a0dfaba317c7a98b92301310e15f602c38 (patch) | |
tree | 0ae6f7bd8a4dfe223333aeda53ecdb49e5e3dc10 /Tests/CMakeTests/CMakeHostSystemInformation-QueryList.cmake | |
parent | dea8271840b69bef078d7af324a72636ff195c94 (diff) | |
download | CMake-bb71a3a0dfaba317c7a98b92301310e15f602c38.zip CMake-bb71a3a0dfaba317c7a98b92301310e15f602c38.tar.gz CMake-bb71a3a0dfaba317c7a98b92301310e15f602c38.tar.bz2 |
Add cmake_host_system_information command
Expose the internal system information API to the CMake language. For
example, it is useful to see how much memory the system has available to
estimate an upper limit of tests that can run in parallel.
Diffstat (limited to 'Tests/CMakeTests/CMakeHostSystemInformation-QueryList.cmake')
-rw-r--r-- | Tests/CMakeTests/CMakeHostSystemInformation-QueryList.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/CMakeTests/CMakeHostSystemInformation-QueryList.cmake b/Tests/CMakeTests/CMakeHostSystemInformation-QueryList.cmake new file mode 100644 index 0000000..1c3156d --- /dev/null +++ b/Tests/CMakeTests/CMakeHostSystemInformation-QueryList.cmake @@ -0,0 +1,5 @@ +cmake_host_system_information(RESULT RESULT + QUERY NUMBER_OF_LOGICAL_CORES NUMBER_OF_PHYSICAL_CORES +) + +message("[${RESULT}]") |