diff options
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 6 |
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; } } |