summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackGenericGenerator.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-04-18 12:25:24 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-04-18 12:25:24 (GMT)
commit4709c76f0f6f1a9aba80f01b13cbabfe8b80c187 (patch)
tree4a10a57446a8c9b8c3dc686fc97ec1c07d90f50d /Source/CPack/cmCPackGenericGenerator.cxx
parent77771481dd0fedee9bd1df420bf29d298e3c337a (diff)
downloadCMake-4709c76f0f6f1a9aba80f01b13cbabfe8b80c187.zip
CMake-4709c76f0f6f1a9aba80f01b13cbabfe8b80c187.tar.gz
CMake-4709c76f0f6f1a9aba80f01b13cbabfe8b80c187.tar.bz2
ENH: More cleanups and add stgz header script, so it does not have to be hard-coded. Also, the user can overwrite it
Diffstat (limited to 'Source/CPack/cmCPackGenericGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackGenericGenerator.cxx18
1 files changed, 17 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackGenericGenerator.cxx b/Source/CPack/cmCPackGenericGenerator.cxx
index 7d7975e..1f8aca6 100644
--- a/Source/CPack/cmCPackGenericGenerator.cxx
+++ b/Source/CPack/cmCPackGenericGenerator.cxx
@@ -532,10 +532,17 @@ int cmCPackGenericGenerator::ProcessGenerator()
}
//----------------------------------------------------------------------
-int cmCPackGenericGenerator::Initialize(const char* name, cmMakefile* mf)
+int cmCPackGenericGenerator::Initialize(const char* name, cmMakefile* mf,
+ const char* argv0)
{
this->MakefileMap = mf;
this->Name = name;
+ if ( !this->FindRunningCMake(argv0) )
+ {
+ cmCPackLogger(cmCPackLog::LOG_ERROR,
+ "Cannot initialize the generator" << std::endl);
+ return 0;
+ }
return this->InitializeInternal();
}
@@ -762,6 +769,15 @@ std::string cmCPackGenericGenerator::FindTemplate(const char* name)
}
//----------------------------------------------------------------------
+bool cmCPackGenericGenerator::ConfigureString(const std::string& inString,
+ std::string& outString)
+{
+ this->MakefileMap->ConfigureString(inString,
+ outString, true, false);
+ return true;
+}
+
+//----------------------------------------------------------------------
bool cmCPackGenericGenerator::ConfigureFile(const char* inName,
const char* outName)
{