summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-07-28 17:32:03 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-07-30 06:28:31 (GMT)
commit4e41913f9acb6a33f6a4eb1b88577fb7499e99d6 (patch)
tree6d92ca296a5f5a6b270747ad326f5413e1af5cf0 /Source/cmInstallCommand.cxx
parente5e529701812bdfe7ea1c3ffe682bd576b9c05a8 (diff)
downloadCMake-4e41913f9acb6a33f6a4eb1b88577fb7499e99d6.zip
CMake-4e41913f9acb6a33f6a4eb1b88577fb7499e99d6.tar.gz
CMake-4e41913f9acb6a33f6a4eb1b88577fb7499e99d6.tar.bz2
cmInstallCommand: Store only a targetName, not a cmTarget.
Compute the cmTarget at Compute() time.
Diffstat (limited to 'Source/cmInstallCommand.cxx')
-rw-r--r--Source/cmInstallCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx
index a33acad..f548f5d 100644
--- a/Source/cmInstallCommand.cxx
+++ b/Source/cmInstallCommand.cxx
@@ -27,7 +27,8 @@ static cmInstallTargetGenerator* CreateInstallTargetGenerator(cmTarget& target,
{
cmInstallGenerator::MessageLevel message =
cmInstallGenerator::SelectMessageLevel(target.GetMakefile());
- return new cmInstallTargetGenerator(target, args.GetDestination().c_str(),
+ return new cmInstallTargetGenerator(target.GetName(),
+ args.GetDestination().c_str(),
impLib, args.GetPermissions().c_str(),
args.GetConfigurations(), args.GetComponent().c_str(),
message,