MCPcopy Create free account
hub / github.com/Kitware/CMake / CreateInstallTargetGenerator

Function CreateInstallTargetGenerator

Source/cmInstallCommand.cxx:151–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149};
150
151std::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
169std::unique_ptr<cmInstallTargetGenerator> CreateInstallTargetGenerator(
170 cmTarget& target, cmInstallCommandArguments const& args, bool impLib,

Callers 1

HandleTargetsModeFunction · 0.85

Calls 10

SetHaveInstallRuleMethod · 0.80
GetPermissionsMethod · 0.80
GetMakefileMethod · 0.45
GetComponentMethod · 0.45
GetNameMethod · 0.45
GetExcludeFromAllMethod · 0.45
GetOptionalMethod · 0.45
AddInstallGeneratorMethod · 0.45
getMethod · 0.45
GetDestinationMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…