summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-13 16:15:14 (GMT)
committerBrad King <brad.king@kitware.com>2013-11-14 21:25:31 (GMT)
commit1befbfad3d9971335ab0e7deb1a93acfdccf0fb6 (patch)
tree8c63c9a8af0b98bfc1ef0fa49e2be16de4fc9628 /Source
parente650225dcdd9f419988f7eaf96c564c1efeee72c (diff)
downloadCMake-1befbfad3d9971335ab0e7deb1a93acfdccf0fb6.zip
CMake-1befbfad3d9971335ab0e7deb1a93acfdccf0fb6.tar.gz
CMake-1befbfad3d9971335ab0e7deb1a93acfdccf0fb6.tar.bz2
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.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalGenerator.cxx38
1 files changed, 5 insertions, 33 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index b2a0ef7..335bf5a 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1575,40 +1575,12 @@ int cmGlobalGenerator::TryCompile(const char *srcdir, const char *bindir,
}
std::string cmGlobalGenerator
-::GenerateBuildCommand(const char* makeProgram, const char *projectName,
- const char *projectDir, const char* additionalOptions,
- const char *targetName, const char* config,
- bool ignoreErrors, bool)
+::GenerateBuildCommand(const char*, const char*,
+ const char*, const char*,
+ const char*, const char*,
+ bool, bool)
{
- // Project name & dir and config are not used yet.
- (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;
+ return "cmGlobalGenerator::GenerateBuildCommand not implemented";
}
int cmGlobalGenerator::Build(