diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-02-18 20:42:55 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-02-18 20:42:55 (GMT) |
commit | 001d7fa3485f29eda3cee02e43e96e34d8aee32e (patch) | |
tree | a003b8ea86ff49c7d8425523a65f5de287705fde | |
parent | 6e63fc0a58852c32351c47fa1c3c36da8e861318 (diff) | |
download | CMake-001d7fa3485f29eda3cee02e43e96e34d8aee32e.zip CMake-001d7fa3485f29eda3cee02e43e96e34d8aee32e.tar.gz CMake-001d7fa3485f29eda3cee02e43e96e34d8aee32e.tar.bz2 |
ENH: add more information to message
-rw-r--r-- | Source/cmFileCommand.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index a30b704..ec61a59 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -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 " - "does not make sense when using DESTDIR. Specify local " - "absolute path or remove DESTDIR environment variable."); + 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." + "\nDESTINATION=\n"; + message += destination; + this->SetError(message.c_str()); return false; } } |