Procházet zdrojové kódy

BUG: fix for empty target or config strings in the Build method

Ken Martin před 20 roky
rodič
revize
a8770ccc19
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      Source/cmGlobalVisualStudio6Generator.cxx

+ 2 - 2
Source/cmGlobalVisualStudio6Generator.cxx

@@ -112,7 +112,7 @@ int cmGlobalVisualStudio6Generator::Build(
   makeCommand += " ";
   makeCommand += projectName;
   makeCommand += ".dsw /MAKE \"";
-  if (targetName)
+  if (targetName && strlen(targetName))
     {
     makeCommand += targetName;
     }
@@ -121,7 +121,7 @@ int cmGlobalVisualStudio6Generator::Build(
     makeCommand += "ALL_BUILD";
     }
   makeCommand += " - ";
-  if(config)
+  if(config && strlen(config))
     {
     makeCommand += config;
     }