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

Method NameResolvesToFramework

Source/cmGlobalGenerator.cxx:2813–2827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2811}
2812
2813bool cmGlobalGenerator::NameResolvesToFramework(
2814 std::string const& libname) const
2815{
2816 if (cmSystemTools::IsPathToFramework(libname)) {
2817 return true;
2818 }
2819
2820 if (cmTarget* tgt = this->FindTarget(libname)) {
2821 if (tgt->IsFrameworkOnApple()) {
2822 return true;
2823 }
2824 }
2825
2826 return false;
2827}
2828
2829// If the file has no extension it's either a raw executable or might
2830// be a direct reference to a binary within a framework (bad practice!).

Callers 2

CreateBuildSettingsMethod · 0.80
GetFrameworkFlagsMethod · 0.80

Calls 2

FindTargetMethod · 0.95
IsFrameworkOnAppleMethod · 0.45

Tested by

no test coverage detected