[CMake] CPU identification
Chris Hillery
chillery-cmake at lambda.nu
Wed Sep 15 20:17:13 EDT 2010
CTest, when submitting a dashboard, apparently has the ability to introspect
quite a lot of information about the system it is running on, such as the
number of CPU cores and so on. Is it possible to get this information in a
cmake or ctest script? I see eg. CMAKE_HOST_SYSTEM_PROCESSOR in the docs,
but those variables are somewhat more generic about the platform and OS, not
the hardware.
My particular goal is to automatically provide the right -j option for
maximizing parallel build performance, but know how to find all the other
information CTest can get may well be useful in future as well.
Ceej
aka Chris Hillery
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100915/b33f0f36/attachment-0001.htm>
More information about the CMake
mailing list