|
@@ -32,10 +32,12 @@ static cmInstallTargetGenerator* CreateInstallTargetGenerator(cmTarget& target,
|
|
}
|
|
}
|
|
|
|
|
|
static cmInstallFilesGenerator* CreateInstallFilesGenerator(
|
|
static cmInstallFilesGenerator* CreateInstallFilesGenerator(
|
|
|
|
+ cmMakefile* mf,
|
|
const std::vector<std::string>& absFiles,
|
|
const std::vector<std::string>& absFiles,
|
|
const cmInstallCommandArguments& args, bool programs)
|
|
const cmInstallCommandArguments& args, bool programs)
|
|
{
|
|
{
|
|
- return new cmInstallFilesGenerator(absFiles, args.GetDestination().c_str(),
|
|
|
|
|
|
+ return new cmInstallFilesGenerator(mf,
|
|
|
|
+ absFiles, args.GetDestination().c_str(),
|
|
programs, args.GetPermissions().c_str(),
|
|
programs, args.GetPermissions().c_str(),
|
|
args.GetConfigurations(), args.GetComponent().c_str(),
|
|
args.GetConfigurations(), args.GetComponent().c_str(),
|
|
args.GetRename().c_str(), args.GetOptional());
|
|
args.GetRename().c_str(), args.GetOptional());
|
|
@@ -668,7 +670,8 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args)
|
|
if (!privateHeaderArgs.GetDestination().empty())
|
|
if (!privateHeaderArgs.GetDestination().empty())
|
|
{
|
|
{
|
|
privateHeaderGenerator =
|
|
privateHeaderGenerator =
|
|
- CreateInstallFilesGenerator(absFiles, privateHeaderArgs, false);
|
|
|
|
|
|
+ CreateInstallFilesGenerator(this->Makefile, absFiles,
|
|
|
|
+ privateHeaderArgs, false);
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -694,7 +697,8 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args)
|
|
if (!publicHeaderArgs.GetDestination().empty())
|
|
if (!publicHeaderArgs.GetDestination().empty())
|
|
{
|
|
{
|
|
publicHeaderGenerator =
|
|
publicHeaderGenerator =
|
|
- CreateInstallFilesGenerator(absFiles, publicHeaderArgs, false);
|
|
|
|
|
|
+ CreateInstallFilesGenerator(this->Makefile, absFiles,
|
|
|
|
+ publicHeaderArgs, false);
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -719,8 +723,8 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args)
|
|
// Create the files install generator.
|
|
// Create the files install generator.
|
|
if (!resourceArgs.GetDestination().empty())
|
|
if (!resourceArgs.GetDestination().empty())
|
|
{
|
|
{
|
|
- resourceGenerator = CreateInstallFilesGenerator(absFiles,
|
|
|
|
- resourceArgs, false);
|
|
|
|
|
|
+ resourceGenerator = CreateInstallFilesGenerator(
|
|
|
|
+ this->Makefile, absFiles, resourceArgs, false);
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -888,7 +892,7 @@ bool cmInstallCommand::HandleFilesMode(std::vector<std::string> const& args)
|
|
|
|
|
|
// Create the files install generator.
|
|
// Create the files install generator.
|
|
this->Makefile->AddInstallGenerator(
|
|
this->Makefile->AddInstallGenerator(
|
|
- CreateInstallFilesGenerator(absFiles, ica, programs));
|
|
|
|
|
|
+ CreateInstallFilesGenerator(this->Makefile, absFiles, ica, programs));
|
|
|
|
|
|
//Tell the global generator about any installation component names specified.
|
|
//Tell the global generator about any installation component names specified.
|
|
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
|
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|