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

Function cmFileSetVisibilityFromName

Source/cmFileSet.cxx:41–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41cmFileSetVisibility cmFileSetVisibilityFromName(cm::string_view name,
42 cmMakefile* mf)
43{
44 if (name == "INTERFACE"_s) {
45 return cmFileSetVisibility::Interface;
46 }
47 if (name == "PUBLIC"_s) {
48 return cmFileSetVisibility::Public;
49 }
50 if (name == "PRIVATE"_s) {
51 return cmFileSetVisibility::Private;
52 }
53 auto msg = cmStrCat("File set visibility \"", name, "\" is not valid.");
54 if (mf) {
55 mf->IssueMessage(MessageType::FATAL_ERROR, msg);
56 } else {
57 cmSystemTools::Error(msg);
58 }
59 return cmFileSetVisibility::Private;
60}
61
62bool cmFileSetVisibilityIsForSelf(cmFileSetVisibility vis)
63{

Callers 2

ParseExportInfoMethod · 0.85
HandleOneFileSetMethod · 0.85

Calls 3

cmStrCatFunction · 0.70
ErrorClass · 0.70
IssueMessageMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…