[cmake-commits] hoffman committed cmLocalVisualStudio6Generator.cxx 1.113 1.114

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Feb 20 10:52:09 EST 2007


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

Modified Files:
	cmLocalVisualStudio6Generator.cxx 
Log Message:
ENH: fix crash


Index: cmLocalVisualStudio6Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalVisualStudio6Generator.cxx,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -d -r1.113 -r1.114
--- cmLocalVisualStudio6Generator.cxx	20 Feb 2007 14:35:21 -0000	1.113
+++ cmLocalVisualStudio6Generator.cxx	20 Feb 2007 15:52:06 -0000	1.114
@@ -422,15 +422,18 @@
       }
 
     const char* lang = this->GetSourceFileLanguage(*(*sf));
-    if(lang && strcmp(lang, "CXX") == 0)
-      {
-      // force a C++ file type
-      compileFlags += " /TP ";
-      } 
-    else if(strcmp(lang, "C") == 0)
+    if(lang)
       {
-      // force to c file type
-      compileFlags += " /TC ";
+      if(strcmp(lang, "CXX") == 0)
+        {
+        // force a C++ file type
+        compileFlags += " /TP ";
+        } 
+      else if(strcmp(lang, "C") == 0)
+        {
+        // force to c file type
+        compileFlags += " /TC ";
+        }
       }
       
     // Check for extra object-file dependencies.



More information about the Cmake-commits mailing list