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

Function CheckIncludeGuardIsSet

Source/cmIncludeGuardCommand.cxx:29–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29bool CheckIncludeGuardIsSet(cmMakefile* mf, std::string const& includeGuardVar)
30{
31 if (mf->GetProperty(includeGuardVar)) {
32 return true;
33 }
34 cmStateSnapshot dirSnapshot =
35 mf->GetStateSnapshot().GetBuildsystemDirectoryParent();
36 while (dirSnapshot.GetState()) {
37 cmStateDirectory stateDir = dirSnapshot.GetDirectory();
38 if (stateDir.GetProperty(includeGuardVar)) {
39 return true;
40 }
41 dirSnapshot = dirSnapshot.GetBuildsystemDirectoryParent();
42 }
43 return false;
44}
45
46} // anonymous namespace
47

Callers 1

cmIncludeGuardCommandFunction · 0.85

Calls 5

GetPropertyMethod · 0.45
GetStateSnapshotMethod · 0.45
GetStateMethod · 0.45
GetDirectoryMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…