STYLE: Emit filenames in try_compile error message to get more information from the Continuous dashboard test that is failing.

This commit is contained in:
David Cole 2009-01-27 11:35:36 -05:00
parent 5527ca5524
commit 3df1535c80
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}
}