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:
parent
5527ca5524
commit
3df1535c80
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue