[cmake-commits] hoffman committed cmFileCommand.cxx 1.99 1.100

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Feb 18 15:42:57 EST 2008


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv15329

Modified Files:
	cmFileCommand.cxx 
Log Message:
ENH: add more information to message


Index: cmFileCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmFileCommand.cxx,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- cmFileCommand.cxx	7 Feb 2008 18:26:16 -0000	1.99
+++ cmFileCommand.cxx	18 Feb 2008 20:42:55 -0000	1.100
@@ -1252,7 +1252,6 @@
     {
     std::string sdestdir = destdir;
     cmSystemTools::ConvertToUnixSlashes(sdestdir);
-
     char ch1 = destination[0];
     char ch2 = destination[1];
     char ch3 = 0;
@@ -1294,9 +1293,12 @@
       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;
         }
       }



More information about the Cmake-commits mailing list