cmInstallCommand: Move the SetHaveInstallRule invocation.

Remove the call from cmInstallTargetGenerator because that is
to be ported away from cmTarget.
This commit is contained in:
Stephen Kelly 2015-07-28 22:00:27 +02:00
parent 5f662b3887
commit 3ef8aaaa71
2 changed files with 6 additions and 1 deletions

View File

@ -752,6 +752,12 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args)
installsPublicHeader = installsPublicHeader || publicHeaderGenerator != 0;
installsResource = installsResource || resourceGenerator;
if (installsArchive || installsRuntime || installsFramework
|| installsLibrary || installsBundle)
{
target.SetHaveInstallRule(true);
}
this->Makefile->AddInstallGenerator(archiveGenerator);
this->Makefile->AddInstallGenerator(libraryGenerator);
this->Makefile->AddInstallGenerator(runtimeGenerator);

View File

@ -35,7 +35,6 @@ cmInstallTargetGenerator
{
this->ActionsPerConfig = true;
this->NamelinkMode = NamelinkModeNone;
this->Target->SetHaveInstallRule(true);
}
//----------------------------------------------------------------------------