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

Function cmInstallCommand

Source/cmInstallCommand.cxx:2809–2837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2807} // namespace
2808
2809bool cmInstallCommand(std::vector<std::string> const& args,
2810 cmExecutionStatus& status)
2811{
2812 // Allow calling with no arguments so that arguments may be built up
2813 // using a variable that may be left empty.
2814 if (args.empty()) {
2815 return true;
2816 }
2817
2818 // Enable the install target.
2819 status.GetMakefile().GetGlobalGenerator()->EnableInstallTarget();
2820
2821 static cmSubcommandTable const subcommand{
2822 { "SCRIPT"_s, HandleScriptMode },
2823 { "CODE"_s, HandleScriptMode },
2824 { "TARGETS"_s, HandleTargetsMode },
2825 { "IMPORTED_RUNTIME_ARTIFACTS"_s, HandleImportedRuntimeArtifactsMode },
2826 { "FILES"_s, HandleFilesMode },
2827 { "PROGRAMS"_s, HandleFilesMode },
2828 { "DIRECTORY"_s, HandleDirectoryMode },
2829 { "EXPORT"_s, HandleExportMode },
2830 { "EXPORT_ANDROID_MK"_s, HandleExportAndroidMKMode },
2831 { "PACKAGE_INFO"_s, HandlePackageInfoMode },
2832 { "RUNTIME_DEPENDENCY_SET"_s, HandleRuntimeDependencySetMode },
2833 { "SBOM"_s, HandleSbomMode }
2834 };
2835
2836 return subcommand(args[0], args, status);
2837}

Callers

nothing calls this directly

Calls 4

EnableInstallTargetMethod · 0.80
emptyMethod · 0.45
GetGlobalGeneratorMethod · 0.45
GetMakefileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…