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

This commit is contained in:
Ken Martin 2005-02-23 14:36:38 -05:00
parent e5637ef7d8
commit a8770ccc19

View File

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