cmGlobalGenerator: Drop unused GenerateBuildCommand implementation
This is a virtual method that is overridden by every generator subclass. The base class implementation should never be called, so replace it with a dummy implementation.
This commit is contained in:
parent
e650225dcd
commit
1befbfad3d
|
@ -1575,40 +1575,12 @@ int cmGlobalGenerator::TryCompile(const char *srcdir, const char *bindir,
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string cmGlobalGenerator
|
std::string cmGlobalGenerator
|
||||||
::GenerateBuildCommand(const char* makeProgram, const char *projectName,
|
::GenerateBuildCommand(const char*, const char*,
|
||||||
const char *projectDir, const char* additionalOptions,
|
const char*, const char*,
|
||||||
const char *targetName, const char* config,
|
const char*, const char*,
|
||||||
bool ignoreErrors, bool)
|
bool, bool)
|
||||||
{
|
{
|
||||||
// Project name & dir and config are not used yet.
|
return "cmGlobalGenerator::GenerateBuildCommand not implemented";
|
||||||
(void)projectName;
|
|
||||||
(void)projectDir;
|
|
||||||
(void)config;
|
|
||||||
|
|
||||||
std::string makeCommand =
|
|
||||||
cmSystemTools::ConvertToUnixOutputPath(makeProgram);
|
|
||||||
|
|
||||||
// Since we have full control over the invocation of nmake, let us
|
|
||||||
// make it quiet.
|
|
||||||
if ( strcmp(this->GetName(), "NMake Makefiles") == 0 )
|
|
||||||
{
|
|
||||||
makeCommand += " /NOLOGO ";
|
|
||||||
}
|
|
||||||
if ( ignoreErrors )
|
|
||||||
{
|
|
||||||
makeCommand += " -i";
|
|
||||||
}
|
|
||||||
if ( additionalOptions )
|
|
||||||
{
|
|
||||||
makeCommand += " ";
|
|
||||||
makeCommand += additionalOptions;
|
|
||||||
}
|
|
||||||
if ( targetName )
|
|
||||||
{
|
|
||||||
makeCommand += " ";
|
|
||||||
makeCommand += targetName;
|
|
||||||
}
|
|
||||||
return makeCommand;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int cmGlobalGenerator::Build(
|
int cmGlobalGenerator::Build(
|
||||||
|
|
Loading…
Reference in New Issue