diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-01-02 22:28:20 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-01-02 22:28:20 (GMT) |
commit | ebbe10193ff5f41c77f2e3cafae06f7c0f30c0c4 (patch) | |
tree | f6dca7a842541b94f8261aa250a23cb349c8d343 /Source/CPack/cmCPackGenericGenerator.cxx | |
parent | f00b344adac6ec59d5432311d3986a21582a62f9 (diff) | |
download | CMake-ebbe10193ff5f41c77f2e3cafae06f7c0f30c0c4.zip CMake-ebbe10193ff5f41c77f2e3cafae06f7c0f30c0c4.tar.gz CMake-ebbe10193ff5f41c77f2e3cafae06f7c0f30c0c4.tar.bz2 |
ENH: Start working on CPack input file and cleanups
Diffstat (limited to 'Source/CPack/cmCPackGenericGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackGenericGenerator.cxx | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/Source/CPack/cmCPackGenericGenerator.cxx b/Source/CPack/cmCPackGenericGenerator.cxx index c6c76ed..7647144 100644 --- a/Source/CPack/cmCPackGenericGenerator.cxx +++ b/Source/CPack/cmCPackGenericGenerator.cxx @@ -17,11 +17,11 @@ #include "cmCPackGenericGenerator.h" +#include "cmMakefile.h" +#include "cmCPackLog.h" #include "cmake.h" #include "cmGlobalGenerator.h" #include "cmLocalGenerator.h" -#include "cmMakefile.h" -#include "cmCPackLog.h" #include <cmsys/SystemTools.hxx> #include <cmsys/Glob.hxx> @@ -31,31 +31,13 @@ cmCPackGenericGenerator::cmCPackGenericGenerator() { m_GeneratorVerbose = false; - m_GlobalGenerator = 0; - m_LocalGenerator = 0; m_MakefileMap = 0; - m_CMakeInstance = 0; m_Logger = 0; } //---------------------------------------------------------------------- cmCPackGenericGenerator::~cmCPackGenericGenerator() { - if ( m_GlobalGenerator ) - { - delete m_GlobalGenerator; - m_GlobalGenerator = 0; - } - if ( m_LocalGenerator ) - { - delete m_LocalGenerator; - m_LocalGenerator = 0; - } - if ( m_CMakeInstance ) - { - delete m_CMakeInstance; - m_CMakeInstance = 0; - } m_MakefileMap = 0; } @@ -258,14 +240,9 @@ int cmCPackGenericGenerator::ProcessGenerator() } //---------------------------------------------------------------------- -int cmCPackGenericGenerator::Initialize(const char* name) +int cmCPackGenericGenerator::Initialize(const char* name, cmMakefile* mf) { - m_CMakeInstance = new cmake; - m_CMakeInstance->AddCMakePaths(m_CMakeRoot.c_str()); - m_GlobalGenerator = new cmGlobalGenerator; - m_GlobalGenerator->SetCMakeInstance(m_CMakeInstance); - m_LocalGenerator = m_GlobalGenerator->CreateLocalGenerator(); - m_MakefileMap = m_LocalGenerator->GetMakefile(); + m_MakefileMap = mf; m_Name = name; return 1; } |