mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 23:30:35 -06:00
cmInstallCommand: Move the SetHaveInstallRule invocation.
Remove the call from cmInstallTargetGenerator because that is to be ported away from cmTarget.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -35,7 +35,6 @@ cmInstallTargetGenerator
|
||||
{
|
||||
this->ActionsPerConfig = true;
|
||||
this->NamelinkMode = NamelinkModeNone;
|
||||
this->Target->SetHaveInstallRule(true);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user