MantisBT - CMake
View Issue Details
0007273CMakeCMakepublic2008-07-02 14:452016-06-10 14:30
R Wackerbarth 
Bill Hoffman 
normalfeatureN/A
closedmoved 
CMake-2-6 
 
0007273: Provide Access to more System Information
CTest provides significantly more information about the test machine than it used to provide. For example, it now provides the processor speed and available memory in addition to the OSName, OSVersion, Hostname, etc. The older parameters are available at build configuration time as CMAKE_SYSTEM_NAME, etc. It would be useful to have the additional info available. In particular, ProcessorClockFrequency and AvailablePhysicalMemory are examples that affect the"default" configuration of my desired builds.

I also have different implementations of (time) critical routines and would like to have the correct one selected to match the processor.
See kwsys::SystemInformation for available info that could be exported to CMAKE variables.
No tags attached.
Issue History
2008-07-02 14:45R WackerbarthNew Issue
2008-07-02 14:53Bill HoffmanNote Added: 0012598
2008-07-02 15:43R WackerbarthNote Added: 0012601
2008-08-19 17:22Bill HoffmanStatusnew => assigned
2008-08-19 17:22Bill HoffmanAssigned To => Bill Hoffman
2016-06-10 14:27Kitware RobotNote Added: 0041436
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0012598)
Bill Hoffman   
2008-07-02 14:53   
Where/how do you see these variables passed back to the tests? Can you give me a use case with some sample code?
(0012601)
R Wackerbarth   
2008-07-02 15:43   
I see them passed back the the CMake configuration.

Just as I now have
IF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
   SET(SourceFiles ${SourceFiles} LinuxHandlers.c)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")

I might add

IF(${CMAKE_PHYSICAL_MEMORY} GREATER 1023)
  ADD_TEST(TestLargeSample MyProgram -tablesize=1000000 testdata)
ENDIF(${CMAKE_PHYSICAL_MEMORY} GREATER 1023)

because I know that the program cannot "malloc" the large table in a machine without adequate memory
(0041436)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.