summaryrefslogtreecommitdiff
path: root/Source/CPack
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-10-31 12:55:04 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2007-10-31 12:55:04 -0400
commite65c40f94a15f5e70695bd5c08444fc42262940c (patch)
treef3ef20ff363eec1b200c7373ddd21c9a70cffcb3 /Source/CPack
parentfb621feefcfddffa27ec429bab85ff5a711e075d (diff)
downloadcmake-e65c40f94a15f5e70695bd5c08444fc42262940c.tar.gz
ENH: add CPACK_PROJECT_CONFIG_FILE option to CPack
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cmCPackGenericGenerator.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackGenericGenerator.cxx b/Source/CPack/cmCPackGenericGenerator.cxx
index e961357f55..51d1018399 100644
--- a/Source/CPack/cmCPackGenericGenerator.cxx
+++ b/Source/CPack/cmCPackGenericGenerator.cxx
@@ -60,7 +60,6 @@ void cmCPackGenericGenerator::DisplayVerboseOutput(const char* msg,
//----------------------------------------------------------------------
int cmCPackGenericGenerator::PrepareNames()
{
- this->SetOption("CPACK_GENERATOR", this->Name.c_str());
std::string tempDirectory = this->GetOption("CPACK_PACKAGE_DIRECTORY");
tempDirectory += "/_CPack_Packages/";
@@ -754,6 +753,15 @@ int cmCPackGenericGenerator::Initialize(const char* name, cmMakefile* mf,
"Cannot initialize the generator" << std::endl);
return 0;
}
+ // set the running generator name
+ this->SetOption("CPACK_GENERATOR", this->Name.c_str());
+ // Load the project specific config file
+ const char* config =
+ this->GetOption("CPACK_PROJECT_CONFIG_FILE");
+ if(config)
+ {
+ mf->ReadListFile(config);
+ }
int result = this->InitializeInternal();
if (cmSystemTools::GetErrorOccuredFlag())
{