ENH: Add a way for the generated command to include extra flags. This is useful for CTest (or try compile) to add -j2

This commit is contained in:
Andy Cedilnik
2005-12-01 11:41:00 -05:00
parent e95224b2e7
commit 782bef7374
10 changed files with 42 additions and 48 deletions
+7 -1
View File
@@ -68,7 +68,8 @@ void cmGlobalVisualStudio6Generator::GenerateConfigurations(cmMakefile* mf)
}
std::string cmGlobalVisualStudio6Generator::GenerateBuildCommand(const char* makeProgram,
const char *projectName, const char *targetName, const char* config, bool ignoreErrors)
const char *projectName, const char* additionalOptions, const char *targetName,
const char* config, bool ignoreErrors)
{
// Ingoring errors is not implemented in visual studio 6
(void) ignoreErrors;
@@ -134,6 +135,11 @@ std::string cmGlobalVisualStudio6Generator::GenerateBuildCommand(const char* mak
{
makeCommand += "\" /BUILD";
}
if ( additionalOptions )
{
makeCommand += " ";
makeCommand += additionalOptions;
}
return makeCommand;
}