From 239fce5caa59daeaea830aa38e0cb576599221da Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 31 Aug 2006 10:47:00 -0400 Subject: ENH: Do not generate install target unless some INSTALL or INSTALL_* commands have been used. This addresses bug#2827. --- Source/cmInstallTargetsCommand.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/cmInstallTargetsCommand.cxx') diff --git a/Source/cmInstallTargetsCommand.cxx b/Source/cmInstallTargetsCommand.cxx index 42f83acb80..246b118af7 100644 --- a/Source/cmInstallTargetsCommand.cxx +++ b/Source/cmInstallTargetsCommand.cxx @@ -26,6 +26,10 @@ bool cmInstallTargetsCommand return false; } + // Enable the install target. + this->Makefile->GetLocalGenerator() + ->GetGlobalGenerator()->EnableInstallTarget(); + cmTargets &tgts = this->Makefile->GetTargets(); std::vector::const_iterator s = args.begin(); ++s; -- cgit v1.2.1