ENH: add more information to message

This commit is contained in:
Bill Hoffman 2008-02-18 15:42:55 -05:00
parent 6e63fc0a58
commit 001d7fa348
1 changed files with 6 additions and 4 deletions

View File

@ -1252,7 +1252,6 @@ bool cmFileCommand::HandleInstallDestination(cmFileInstaller& installer,
{
std::string sdestdir = destdir;
cmSystemTools::ConvertToUnixSlashes(sdestdir);
char ch1 = destination[0];
char ch2 = destination[1];
char ch3 = 0;
@ -1294,9 +1293,12 @@ bool cmFileCommand::HandleInstallDestination(cmFileInstaller& installer,
if ( ch2 == '/' )
{
// looks like a network path.
this->SetError("called with network path DESTINATION. This "
std::string message = "called with network path DESTINATION. This "
"does not make sense when using DESTDIR. Specify local "
"absolute path or remove DESTDIR environment variable.");
"absolute path or remove DESTDIR environment variable."
"\nDESTINATION=\n";
message += destination;
this->SetError(message.c_str());
return false;
}
}