mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
BUG: fix for empty target or config strings in the Build method
This commit is contained in:
parent
e5637ef7d8
commit
a8770ccc19
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user