| 27 | } |
| 28 | |
| 29 | bool 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 |
no test coverage detected
searching dependent graphs…