summaryrefslogtreecommitdiffstats
path: root/Source/cmCoreTryCompile.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2009-01-27 16:35:36 (GMT)
committerDavid Cole <david.cole@kitware.com>2009-01-27 16:35:36 (GMT)
commit3df1535c802a9360cef895421b2a7fa0f84a83ff (patch)
tree9180fc1f89263f02656928822b6d0136e42e456a /Source/cmCoreTryCompile.cxx
parent5527ca5524bebbf9373edf97826fcc4cb3651c59 (diff)
downloadCMake-3df1535c802a9360cef895421b2a7fa0f84a83ff.zip
CMake-3df1535c802a9360cef895421b2a7fa0f84a83ff.tar.gz
CMake-3df1535c802a9360cef895421b2a7fa0f84a83ff.tar.bz2
STYLE: Emit filenames in try_compile error message to get more information from the Continuous dashboard test that is failing.
Diffstat (limited to 'Source/cmCoreTryCompile.cxx')
-rw-r--r--Source/cmCoreTryCompile.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx
index 457f31f..e756c1c 100644
--- a/Source/cmCoreTryCompile.cxx
+++ b/Source/cmCoreTryCompile.cxx
@@ -310,7 +310,11 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv)
if(!cmSystemTools::CopyFileAlways(this->OutputFile.c_str(),
copyFile.c_str()))
{
- cmSystemTools::Error("Could not COPY_FILE");
+ cmOStringStream emsg;
+ emsg << "Could not COPY_FILE.\n"
+ << " OutputFile: '" << this->OutputFile.c_str() << "'\n"
+ << " copyFile: '" << copyFile.c_str() << "'\n";
+ cmSystemTools::Error(emsg.str().c_str());
return -1;
}
}