| 828 | } |
| 829 | |
| 830 | void cmPackageInfoReader::ReadCxxModulesMetadata( |
| 831 | cmMakefile* makefile, cmTarget* target, cm::string_view configuration, |
| 832 | Json::Value const& object) const |
| 833 | { |
| 834 | #ifndef CMAKE_BOOTSTRAP |
| 835 | Json::Value const& path = object["cpp_module_metadata"]; |
| 836 | |
| 837 | if (!path.isString()) { |
| 838 | return; |
| 839 | } |
| 840 | |
| 841 | cmCxxModuleMetadata::ParseResult result = |
| 842 | cmCxxModuleMetadata::LoadFromFile(this->ResolvePath(path.asString())); |
| 843 | |
| 844 | if (!result) { |
| 845 | makefile->IssueMessage( |
| 846 | MessageType::WARNING, |
| 847 | cmStrCat("Error parsing module manifest:\n"_s, result.Error)); |
| 848 | return; |
| 849 | } |
| 850 | |
| 851 | cmCxxModuleMetadata::PopulateTarget(*target, *result.Meta, configuration); |
| 852 | #endif |
| 853 | } |
| 854 | |
| 855 | cmTarget* cmPackageInfoReader::AddLibraryComponent( |
| 856 | cmMakefile* makefile, cmStateEnums::TargetType type, std::string const& name, |
no test coverage detected