ENH: Enabling cmLocalUnixMakefileGenerator2 by default.
This commit is contained in:
parent
54c99dc5fd
commit
c7beb28657
|
@ -15,9 +15,10 @@
|
|||
|
||||
=========================================================================*/
|
||||
#include "cmGlobalBorlandMakefileGenerator.h"
|
||||
#include "cmLocalUnixMakefileGenerator.h"
|
||||
#include "cmLocalUnixMakefileGenerator2.h"
|
||||
#include "cmMakefile.h"
|
||||
#include "cmake.h"
|
||||
|
||||
cmGlobalBorlandMakefileGenerator::cmGlobalBorlandMakefileGenerator()
|
||||
{
|
||||
m_FindMakeProgramFile = "CMakeBorlandFindMake.cmake";
|
||||
|
@ -29,6 +30,7 @@ void cmGlobalBorlandMakefileGenerator::EnableLanguage(std::vector<std::string>co
|
|||
cmMakefile *mf)
|
||||
{
|
||||
std::string outdir = m_CMakeInstance->GetStartOutputDirectory();
|
||||
mf->AddDefinition("CMAKE_GENERATOR_NEW", "1");
|
||||
mf->AddDefinition("BORLAND", "1");
|
||||
mf->AddDefinition("CMAKE_GENERATOR_CC", "bcc32");
|
||||
mf->AddDefinition("CMAKE_GENERATOR_CXX", "bcc32");
|
||||
|
@ -38,7 +40,9 @@ void cmGlobalBorlandMakefileGenerator::EnableLanguage(std::vector<std::string>co
|
|||
///! Create a local generator appropriate to this Global Generator
|
||||
cmLocalGenerator *cmGlobalBorlandMakefileGenerator::CreateLocalGenerator()
|
||||
{
|
||||
cmLocalUnixMakefileGenerator *lg = new cmLocalUnixMakefileGenerator;
|
||||
cmLocalUnixMakefileGenerator2* lg = new cmLocalUnixMakefileGenerator2;
|
||||
lg->SetEmptyCommand("@REM Borland Make needs a command here.");
|
||||
lg->SetEchoNeedsQuote(false);
|
||||
lg->SetIncludeDirective("!include");
|
||||
lg->SetWindowsShell(true);
|
||||
lg->SetMakefileVariableSize(32);
|
||||
|
|
|
@ -15,10 +15,9 @@
|
|||
|
||||
=========================================================================*/
|
||||
#include "cmGlobalNMakeMakefileGenerator.h"
|
||||
#include "cmLocalUnixMakefileGenerator.h"
|
||||
#include "cmLocalUnixMakefileGenerator2.h"
|
||||
#include "cmMakefile.h"
|
||||
|
||||
|
||||
cmGlobalNMakeMakefileGenerator::cmGlobalNMakeMakefileGenerator()
|
||||
{
|
||||
m_FindMakeProgramFile = "CMakeNMakeFindMake.cmake";
|
||||
|
@ -29,6 +28,7 @@ void cmGlobalNMakeMakefileGenerator::EnableLanguage(std::vector<std::string>cons
|
|||
cmMakefile *mf)
|
||||
{
|
||||
// pick a default
|
||||
mf->AddDefinition("CMAKE_GENERATOR_NEW", "1");
|
||||
mf->AddDefinition("CMAKE_GENERATOR_CC", "cl");
|
||||
mf->AddDefinition("CMAKE_GENERATOR_CXX", "cl");
|
||||
this->cmGlobalUnixMakefileGenerator::EnableLanguage(l, mf);
|
||||
|
@ -37,7 +37,8 @@ void cmGlobalNMakeMakefileGenerator::EnableLanguage(std::vector<std::string>cons
|
|||
///! Create a local generator appropriate to this Global Generator
|
||||
cmLocalGenerator *cmGlobalNMakeMakefileGenerator::CreateLocalGenerator()
|
||||
{
|
||||
cmLocalUnixMakefileGenerator *lg = new cmLocalUnixMakefileGenerator;
|
||||
cmLocalUnixMakefileGenerator2* lg = new cmLocalUnixMakefileGenerator2;
|
||||
lg->SetEchoNeedsQuote(false);
|
||||
lg->SetWindowsShell(true);
|
||||
lg->SetMakeSilentFlag("/nologo");
|
||||
lg->SetGlobalGenerator(this);
|
||||
|
|
Loading…
Reference in New Issue