diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx index 03bd15928d..6ce7ae5bb4 100644 --- a/Source/cmInstallCommand.cxx +++ b/Source/cmInstallCommand.cxx @@ -536,7 +536,7 @@ bool cmInstallCommand::HandleTargetsMode(std::vector const& args) bundleGenerator = CreateInstallTargetGenerator(target, bundleArgs, false); } - if(!runtimeArgs.GetDestination().empty()) + else if(!runtimeArgs.GetDestination().empty()) { bool failure = false; if(this->CheckCMP0006(failure))