| 149 | }; |
| 150 | |
| 151 | std::unique_ptr<cmInstallTargetGenerator> CreateInstallTargetGenerator( |
| 152 | cmTarget& target, cmInstallCommandArguments const& args, bool impLib, |
| 153 | cmListFileBacktrace const& backtrace, std::string const& destination, |
| 154 | bool forceOpt = false, bool namelink = false) |
| 155 | { |
| 156 | cmInstallGenerator::MessageLevel message = |
| 157 | cmInstallGenerator::SelectMessageLevel(target.GetMakefile()); |
| 158 | target.SetHaveInstallRule(true); |
| 159 | std::string const& component = |
| 160 | namelink ? args.GetNamelinkComponent() : args.GetComponent(); |
| 161 | auto g = cm::make_unique<cmInstallTargetGenerator>( |
| 162 | target.GetName(), destination, impLib, args.GetPermissions(), |
| 163 | args.GetConfigurations(), component, message, args.GetExcludeFromAll(), |
| 164 | args.GetOptional() || forceOpt, backtrace); |
| 165 | target.AddInstallGenerator(g.get()); |
| 166 | return g; |
| 167 | } |
| 168 | |
| 169 | std::unique_ptr<cmInstallTargetGenerator> CreateInstallTargetGenerator( |
| 170 | cmTarget& target, cmInstallCommandArguments const& args, bool impLib, |
no test coverage detected
searching dependent graphs…