CTest: Remove needless cmLocalGenerator creation.
This commit is contained in:
parent
94cc4e74ae
commit
6da4cd8fb9
|
@ -728,7 +728,6 @@ int cmCTestLaunch::Main(int argc, const char* const argv[])
|
|||
|
||||
//----------------------------------------------------------------------------
|
||||
#include "cmGlobalGenerator.h"
|
||||
#include "cmLocalGenerator.h"
|
||||
#include "cmMakefile.h"
|
||||
#include "cmake.h"
|
||||
#include <cmsys/auto_ptr.hxx>
|
||||
|
@ -739,8 +738,6 @@ void cmCTestLaunch::LoadConfig()
|
|||
cm.SetHomeOutputDirectory("");
|
||||
cmGlobalGenerator gg(&cm);
|
||||
cmsys::auto_ptr<cmMakefile> mf(new cmMakefile(&gg, cm.GetCurrentSnapshot()));
|
||||
cmsys::auto_ptr<cmLocalGenerator> lg(
|
||||
gg.CreateLocalGenerator(mf.get()));
|
||||
std::string fname = this->LogDir;
|
||||
fname += "CTestLaunchConfig.cmake";
|
||||
if(cmSystemTools::FileExists(fname.c_str()) &&
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include <cmsys/FStream.hxx>
|
||||
#include "cmMakefile.h"
|
||||
#include "cmGlobalGenerator.h"
|
||||
#include "cmLocalGenerator.h"
|
||||
#include "cmCommand.h"
|
||||
#include "cmSystemTools.h"
|
||||
#include "cmXMLWriter.h"
|
||||
|
@ -1593,8 +1592,6 @@ void cmCTestTestHandler::GetListOfTests()
|
|||
cm.SetHomeOutputDirectory("");
|
||||
cmGlobalGenerator gg(&cm);
|
||||
cmsys::auto_ptr<cmMakefile> mf(new cmMakefile(&gg, cm.GetCurrentSnapshot()));
|
||||
cmsys::auto_ptr<cmLocalGenerator> lg(
|
||||
gg.CreateLocalGenerator(mf.get()));
|
||||
mf->AddDefinition("CTEST_CONFIGURATION_TYPE",
|
||||
this->CTest->GetConfigType().c_str());
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include "cmCTest.h"
|
||||
#include "cmake.h"
|
||||
#include "cmMakefile.h"
|
||||
#include "cmLocalGenerator.h"
|
||||
#include "cmGlobalGenerator.h"
|
||||
#include <cmsys/Base64.h>
|
||||
#include <cmsys/Directory.hxx>
|
||||
|
@ -520,7 +519,6 @@ int cmCTest::Initialize(const char* binary_dir, cmCTestStartCommand* command)
|
|||
cm.SetHomeOutputDirectory("");
|
||||
cmGlobalGenerator gg(&cm);
|
||||
cmsys::auto_ptr<cmMakefile> mf(new cmMakefile(&gg, cm.GetCurrentSnapshot()));
|
||||
cmsys::auto_ptr<cmLocalGenerator> lg(gg.CreateLocalGenerator(mf.get()));
|
||||
if ( !this->ReadCustomConfigurationFileTree(this->BinaryDir.c_str(),
|
||||
mf.get()) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue