summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-11-09 14:38:16 (GMT)
committerBrad King <brad.king@kitware.com>2015-11-09 14:38:16 (GMT)
commitbab8f83cac33df3f48da178076fe3668dd222648 (patch)
tree52e775752ba0d8d19ee337960bd4040e55afdd1b /Source
parentbc4b6aa68dd48ffd567ae7a24abd8911a689c38a (diff)
parent9103d8ace327d34a6bc5085e0ec91abc6e8053f1 (diff)
downloadCMake-bab8f83cac33df3f48da178076fe3668dd222648.zip
CMake-bab8f83cac33df3f48da178076fe3668dd222648.tar.gz
CMake-bab8f83cac33df3f48da178076fe3668dd222648.tar.bz2
Merge branch 'fix-install-rules' into release
Diffstat (limited to 'Source')
-rw-r--r--Source/cmInstallCommand.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx
index 333c2ff..d3c2e26 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);