MCPcopy Create free account
hub / github.com/Kitware/CMake / operator()

Method operator()

Source/cmLocalUnixMakefileGenerator3.cxx:112–125  ·  view source on GitHub ↗

Operator evaluating the predicate

Source from the content-addressed store, hash-verified

110
111 // Operator evaluating the predicate
112 bool operator()(std::string const& p) const
113 {
114 auto path = cmCMakePath(p).Normal();
115
116 // Keep all relative paths:
117 if (path.IsRelative()) {
118 return false;
119 }
120
121 // If it's an absolute path, check if it starts with the source
122 // directory:
123 return !(cmCMakePath(this->SourceDir).IsPrefix(path) ||
124 cmCMakePath(this->BinaryDir).IsPrefix(path));
125 }
126
127private:
128 // The path to the source directory

Callers

nothing calls this directly

Calls 4

cmCMakePathClass · 0.85
NormalMethod · 0.80
IsRelativeMethod · 0.80
IsPrefixMethod · 0.80

Tested by

no test coverage detected