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

Function CreateInstallGenerator

Source/cmInstallFilesCommand.cxx:105–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105static void CreateInstallGenerator(cmMakefile& makefile,
106 std::string const& dest,
107 std::vector<std::string> const& files)
108{
109 // Construct the destination. This command always installs under
110 // the prefix. We skip the leading slash given by the user.
111 std::string destination = dest.substr(1);
112 cmSystemTools::ConvertToUnixSlashes(destination);
113 if (destination.empty()) {
114 destination = ".";
115 }
116
117 // Use a file install generator.
118 std::string const no_permissions;
119 std::string const no_rename;
120 bool no_exclude_from_all = false;
121 std::string no_component =
122 makefile.GetSafeDefinition("CMAKE_INSTALL_DEFAULT_COMPONENT_NAME");
123 std::vector<std::string> no_configurations;
124 cmInstallGenerator::MessageLevel message =
125 cmInstallGenerator::SelectMessageLevel(&makefile);
126 makefile.AddInstallGenerator(cm::make_unique<cmInstallFilesGenerator>(
127 files, destination, false, no_permissions, no_configurations, no_component,
128 message, no_exclude_from_all, no_rename, false, makefile.GetBacktrace()));
129}
130
131/**
132 * Find a file in the build or source tree for installation given a

Callers 2

cmInstallFilesCommandFunction · 0.85
FinalActionFunction · 0.85

Calls 4

substrMethod · 0.45
emptyMethod · 0.45
AddInstallGeneratorMethod · 0.45
GetBacktraceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…