CMake/Tests/SystemInformation
Brad King fa7141f5ad Add framework to detect compiler version with its id (#12408)
Teach CMakePlatformId.h to construct an "INFO:compiler_version[]" string
literal from macros COMPILER_VERSION_(MAJOR|MINOR|PATCH|TWEAK) to be
defined in CMake(C|CXX)CompilerId.(c|cpp) for each compiler.  Provide
conversion macros DEC() and HEX() to decode decimal or hex digits from
integer values.  Parse the version out of the compiler id binary along
with the other INFO values already present.

Store the result in variable CMAKE_<LANG>_COMPILER_VERSION in the format
"major[.minor[.patch[.tweak]]]".  Save the value persistently in
CMake(C|CXX)Compiler.cmake in the build tree.  Document the variable for
internal use since we do not set it everywhere yet.

Report the compiler version on the compiler id result line e.g.

  The C compiler identification is GNU 4.5.2

Report CMAKE_(C|CXX)_COMPILER_(ID|VERSION) in SystemInformation test.
2011-12-07 08:59:51 -05:00
..
CMakeLists.txt ENH: preclean some warnings 2008-03-25 11:27:18 -04:00
DumpInformation.cxx ENH: Report CMake logs in SystemInformation test 2009-07-27 12:35:12 -04:00
DumpInformation.h.in BUG: Fix SystemInformation dump output 2009-07-21 10:56:31 -04:00
SystemInformation.in Add framework to detect compiler version with its id (#12408) 2011-12-07 08:59:51 -05:00