summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-05 14:20:13 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-08-05 14:20:27 (GMT)
commit7eb2fd6ca68e2681a08aef8b1dd8db253b172e00 (patch)
tree38cbf15a897580da28834824f1b9af83a9139072 /Source/cmInstallCommand.cxx
parent3ebd3fa51d229e0067e8ca24f8fa4ed35ee5dac8 (diff)
parentd70a0f8681919713940d254f9e23141f69f68c31 (diff)
downloadCMake-7eb2fd6ca68e2681a08aef8b1dd8db253b172e00.zip
CMake-7eb2fd6ca68e2681a08aef8b1dd8db253b172e00.tar.gz
CMake-7eb2fd6ca68e2681a08aef8b1dd8db253b172e00.tar.bz2
Merge topic 'fileapi-install-generators'
d70a0f8681 fileapi: Fix codemodel target install destination for cross-dir rules Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3639
Diffstat (limited to 'Source/cmInstallCommand.cxx')
-rw-r--r--Source/cmInstallCommand.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx
index aca7268..5349a9d 100644
--- a/Source/cmInstallCommand.cxx
+++ b/Source/cmInstallCommand.cxx
@@ -43,11 +43,13 @@ static cmInstallTargetGenerator* CreateInstallTargetGenerator(
target.SetHaveInstallRule(true);
const char* component = namelink ? args.GetNamelinkComponent().c_str()
: args.GetComponent().c_str();
- return new cmInstallTargetGenerator(
+ auto g = new cmInstallTargetGenerator(
target.GetName(), destination.c_str(), impLib,
args.GetPermissions().c_str(), args.GetConfigurations(), component,
message, args.GetExcludeFromAll(), args.GetOptional() || forceOpt,
backtrace);
+ target.AddInstallGenerator(g);
+ return g;
}
static cmInstallTargetGenerator* CreateInstallTargetGenerator(