summaryrefslogtreecommitdiff
path: root/Source/cmGlobalVisualStudio6Generator.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-01 11:41:00 -0500
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-01 11:41:00 -0500
commit782bef73746cce51a000effd72f16b2fbb3d3d8a (patch)
treea529545cc540245b811534b506c762d4e18b15fe /Source/cmGlobalVisualStudio6Generator.cxx
parente95224b2e747c8eacba178c37a9ad5c5c055cbf4 (diff)
downloadcmake-782bef73746cce51a000effd72f16b2fbb3d3d8a.tar.gz
ENH: Add a way for the generated command to include extra flags. This is useful for CTest (or try compile) to add -j2
Diffstat (limited to 'Source/cmGlobalVisualStudio6Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio6Generator.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio6Generator.cxx b/Source/cmGlobalVisualStudio6Generator.cxx
index eed2e0997b..07f171de72 100644
--- a/Source/cmGlobalVisualStudio6Generator.cxx
+++ b/Source/cmGlobalVisualStudio6Generator.cxx
@@ -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;
}