From a8770ccc193371d19f16bad6e4cf7ef6932a4ad5 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Wed, 23 Feb 2005 14:36:38 -0500 Subject: BUG: fix for empty target or config strings in the Build method --- Source/cmGlobalVisualStudio6Generator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmGlobalVisualStudio6Generator.cxx b/Source/cmGlobalVisualStudio6Generator.cxx index 34b4620..450bc57 100644 --- a/Source/cmGlobalVisualStudio6Generator.cxx +++ b/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; } -- cgit v0.12