| 103 | } |
| 104 | |
| 105 | static 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 |
no test coverage detected
searching dependent graphs…