summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-11-09 09:38:16 -0500
committerBrad King <brad.king@kitware.com>2015-11-09 09:38:16 -0500
commitbab8f83cac33df3f48da178076fe3668dd222648 (patch)
tree52e775752ba0d8d19ee337960bd4040e55afdd1b
parentbc4b6aa68dd48ffd567ae7a24abd8911a689c38a (diff)
parent9103d8ace327d34a6bc5085e0ec91abc6e8053f1 (diff)
downloadcmake-bab8f83cac33df3f48da178076fe3668dd222648.tar.gz
Merge branch 'fix-install-rules' into release
-rw-r--r--Source/cmInstallCommand.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx
index 333c2ff173..d3c2e268ce 100644
--- a/Source/cmInstallCommand.cxx
+++ b/Source/cmInstallCommand.cxx
@@ -27,6 +27,7 @@ static cmInstallTargetGenerator* CreateInstallTargetGenerator(cmTarget& target,
{
cmInstallGenerator::MessageLevel message =
cmInstallGenerator::SelectMessageLevel(target.GetMakefile());
+ target.SetHaveInstallRule(true);
return new cmInstallTargetGenerator(target.GetName(),
args.GetDestination().c_str(),
impLib, args.GetPermissions().c_str(),
@@ -753,12 +754,6 @@ 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);