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

Class TargetPropertyEntryFinder

Source/cmTarget.cxx:1398–1420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1396};
1397
1398struct TargetPropertyEntryFinder
1399{
1400private:
1401 cmSourceFileLocation const& Needle;
1402
1403public:
1404 TargetPropertyEntryFinder(cmSourceFileLocation const& needle)
1405 : Needle(needle)
1406 {
1407 }
1408
1409 bool operator()(BT<std::string> const& entry)
1410 {
1411 cmList files{ entry.Value };
1412 std::vector<cmSourceFileLocation> locations;
1413 locations.reserve(files.size());
1414 std::transform(files.begin(), files.end(), std::back_inserter(locations),
1415 CreateLocation(this->Needle.GetMakefile()));
1416
1417 return std::find_if(locations.begin(), locations.end(),
1418 LocationMatcher(this->Needle)) != locations.end();
1419 }
1420};
1421
1422cmSourceFile* cmTarget::AddSource(std::string const& src, bool before)
1423{

Callers 1

AddSourceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…