[cmake-commits] hoffman committed cmLocalVisualStudio7Generator.cxx 1.125.2.15 1.125.2.16 cmLocalVisualStudioGenerator.cxx 1.2.2.5 1.2.2.6

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Jan 15 16:02:33 EST 2008


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

Modified Files:
      Tag: CMake-2-4
	cmLocalVisualStudio7Generator.cxx 
	cmLocalVisualStudioGenerator.cxx 
Log Message:
ENH: move more stuff over and get vs 9 working


Index: cmLocalVisualStudio7Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalVisualStudio7Generator.cxx,v
retrieving revision 1.125.2.15
retrieving revision 1.125.2.16
diff -u -d -r1.125.2.15 -r1.125.2.16
--- cmLocalVisualStudio7Generator.cxx	12 Dec 2007 03:28:45 -0000	1.125.2.15
+++ cmLocalVisualStudio7Generator.cxx	15 Jan 2008 21:02:31 -0000	1.125.2.16
@@ -1461,14 +1461,7 @@
     }
   else
     {
-    if (this->Version == 8)
-      {
-      fout << "\tVersion=\"8.00\"\n";
-      }
-    else
-      {
-      fout << "\tVersion=\"7.00\"\n";
-      }
+    fout <<  "\tVersion=\"" << this->Version << ".00\"\n";
     }
   const char* projLabel = target.GetProperty("PROJECT_LABEL");
   if(!projLabel)

Index: cmLocalVisualStudioGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalVisualStudioGenerator.cxx,v
retrieving revision 1.2.2.5
retrieving revision 1.2.2.6
diff -u -d -r1.2.2.5 -r1.2.2.6
--- cmLocalVisualStudioGenerator.cxx	16 Mar 2007 22:05:42 -0000	1.2.2.5
+++ cmLocalVisualStudioGenerator.cxx	15 Jan 2008 21:02:31 -0000	1.2.2.6
@@ -126,6 +126,15 @@
     newline = newline_text;
     script += "cd ";
     script += this->Convert(workingDirectory, START_OUTPUT, SHELL);
+
+    // Change the working drive.
+    if(workingDirectory[0] && workingDirectory[1] == ':')
+      {
+      script += newline;
+      newline = newline_text;
+      script += workingDirectory[0];
+      script += workingDirectory[1];
+      }
     }
   // for visual studio IDE add extra stuff to the PATH
   // if CMAKE_MSVCIDE_RUN_PATH is set.



More information about the Cmake-commits mailing list