summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-01 16:41:00 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-01 16:41:00 (GMT)
commit782bef73746cce51a000effd72f16b2fbb3d3d8a (patch)
treea529545cc540245b811534b506c762d4e18b15fe /Source/cmGlobalVisualStudio7Generator.cxx
parente95224b2e747c8eacba178c37a9ad5c5c055cbf4 (diff)
downloadCMake-782bef73746cce51a000effd72f16b2fbb3d3d8a.zip
CMake-782bef73746cce51a000effd72f16b2fbb3d3d8a.tar.gz
CMake-782bef73746cce51a000effd72f16b2fbb3d3d8a.tar.bz2
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/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index c44a782..8a9888b 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -44,7 +44,8 @@ void cmGlobalVisualStudio7Generator::EnableLanguage(std::vector<std::string>cons
}
std::string cmGlobalVisualStudio7Generator::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;
@@ -100,6 +101,11 @@ std::string cmGlobalVisualStudio7Generator::GenerateBuildCommand(const char* mak
{
makeCommand += "ALL_BUILD";
}
+ if ( additionalOptions )
+ {
+ makeCommand += " ";
+ makeCommand += additionalOptions;
+ }
return makeCommand;
}