Merge topic 'ctest-report-compiler-version'

48c6e7f2 CTest: Report to CDash the compiler version used to build the project
This commit is contained in:
Brad King 2015-08-12 09:30:29 -04:00 committed by CMake Topic Stage
commit 6731eab90c
2 changed files with 3 additions and 3 deletions

View File

@ -69,6 +69,7 @@ UpdateType: @UPDATE_TYPE@
# Compiler info
Compiler: @CMAKE_CXX_COMPILER@
CompilerVersion: @CMAKE_CXX_COMPILER_VERSION@
# Dynamic analysis (MemCheck)
PurifyCommand: @PURIFYCOMMAND@

View File

@ -1546,9 +1546,8 @@ void cmCTest::StartXML(cmXMLWriter& xml, bool append)
xml.Attribute("Append", "true");
}
xml.Attribute("CompilerName", this->GetCTestConfiguration("Compiler"));
#ifdef _COMPILER_VERSION
xml.Attribute("CompilerVersion", _COMPILER_VERSION);
#endif
xml.Attribute("CompilerVersion",
this->GetCTestConfiguration("CompilerVersion"));
xml.Attribute("OSName", info.GetOSName());
xml.Attribute("Hostname", info.GetHostname());
xml.Attribute("OSRelease", info.GetOSRelease());