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

Method ReadCxxModulesMetadata

Source/cmPackageInfoReader.cxx:830–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828}
829
830void 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
855cmTarget* cmPackageInfoReader::AddLibraryComponent(
856 cmMakefile* makefile, cmStateEnums::TargetType type, std::string const& name,

Callers 1

SetTargetPropertiesMethod · 0.95

Calls 5

ResolvePathMethod · 0.95
isStringMethod · 0.80
asStringMethod · 0.80
cmStrCatFunction · 0.70
IssueMessageMethod · 0.45

Tested by

no test coverage detected