summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio6Generator.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-02-23 19:36:38 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-02-23 19:36:38 (GMT)
commita8770ccc193371d19f16bad6e4cf7ef6932a4ad5 (patch)
tree645a5f8a9a74534b4420747bc0058a8b53a0b23f /Source/cmGlobalVisualStudio6Generator.cxx
parente5637ef7d816228ed7eb86cc4a0f87d9f8aba1c1 (diff)
downloadCMake-a8770ccc193371d19f16bad6e4cf7ef6932a4ad5.zip
CMake-a8770ccc193371d19f16bad6e4cf7ef6932a4ad5.tar.gz
CMake-a8770ccc193371d19f16bad6e4cf7ef6932a4ad5.tar.bz2
BUG: fix for empty target or config strings in the Build method
Diffstat (limited to 'Source/cmGlobalVisualStudio6Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio6Generator.cxx4
1 files 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;
}