ENH: add more information to message
This commit is contained in:
parent
6e63fc0a58
commit
001d7fa348
|
@ -1252,7 +1252,6 @@ bool cmFileCommand::HandleInstallDestination(cmFileInstaller& installer,
|
||||||
{
|
{
|
||||||
std::string sdestdir = destdir;
|
std::string sdestdir = destdir;
|
||||||
cmSystemTools::ConvertToUnixSlashes(sdestdir);
|
cmSystemTools::ConvertToUnixSlashes(sdestdir);
|
||||||
|
|
||||||
char ch1 = destination[0];
|
char ch1 = destination[0];
|
||||||
char ch2 = destination[1];
|
char ch2 = destination[1];
|
||||||
char ch3 = 0;
|
char ch3 = 0;
|
||||||
|
@ -1294,9 +1293,12 @@ bool cmFileCommand::HandleInstallDestination(cmFileInstaller& installer,
|
||||||
if ( ch2 == '/' )
|
if ( ch2 == '/' )
|
||||||
{
|
{
|
||||||
// looks like a network path.
|
// 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 "
|
"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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue