mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user