From 3df1535c802a9360cef895421b2a7fa0f84a83ff Mon Sep 17 00:00:00 2001 From: David Cole Date: Tue, 27 Jan 2009 11:35:36 -0500 Subject: STYLE: Emit filenames in try_compile error message to get more information from the Continuous dashboard test that is failing. --- Source/cmCoreTryCompile.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 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; } } -- cgit v0.12