diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-01 16:41:00 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-01 16:41:00 (GMT) |
commit | 782bef73746cce51a000effd72f16b2fbb3d3d8a (patch) | |
tree | a529545cc540245b811534b506c762d4e18b15fe /Source/cmGlobalXCodeGenerator.cxx | |
parent | e95224b2e747c8eacba178c37a9ad5c5c055cbf4 (diff) | |
download | CMake-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/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 93afdc2..06d3f1b 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -132,8 +132,8 @@ void cmGlobalXCodeGenerator::EnableLanguage(std::vector<std::string>const& //---------------------------------------------------------------------------- std::string cmGlobalXCodeGenerator::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) { // Config is not used yet (void) config; @@ -190,6 +190,11 @@ std::string cmGlobalXCodeGenerator::GenerateBuildCommand(const char* makeProgram { makeCommand += " -configuration Debug"; } + if ( additionalOptions ) + { + makeCommand += " "; + makeCommand += additionalOptions; + } makeCommand += " OBJROOT=."; return makeCommand; } |