| 65 | } |
| 66 | |
| 67 | static void AddExportGenerator( |
| 68 | cmMakefile& makefile, cmGlobalGenerator* globalGenerator, |
| 69 | std::unique_ptr<cmExportBuildFileGenerator> exportGenerator, |
| 70 | std::string const& fileName, cmExportSet* exportSet, |
| 71 | std::string const& cxxModulesDirectory) |
| 72 | { |
| 73 | exportGenerator->SetExportFile(fileName.c_str()); |
| 74 | exportGenerator->SetCxxModuleDirectory(cxxModulesDirectory); |
| 75 | if (exportSet) { |
| 76 | exportGenerator->SetExportSet(exportSet); |
| 77 | } |
| 78 | std::vector<std::string> configurationTypes = |
| 79 | makefile.GetGeneratorConfigs(cmMakefile::IncludeEmptyConfig); |
| 80 | |
| 81 | for (std::string const& ct : configurationTypes) { |
| 82 | exportGenerator->AddConfiguration(ct); |
| 83 | } |
| 84 | if (exportSet) { |
| 85 | globalGenerator->AddBuildExportExportSet(exportGenerator.get()); |
| 86 | } |
| 87 | makefile.AddExportBuildFileGenerator(std::move(exportGenerator)); |
| 88 | } |
| 89 | |
| 90 | static bool HandleTargetsMode(std::vector<std::string> const& args, |
| 91 | cmExecutionStatus& status) |
no test coverage detected
searching dependent graphs…