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

Method IsImportedFrameworkFolderOnApple

Source/cmGeneratorTarget.cxx:5657–5677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5655}
5656
5657bool cmGeneratorTarget::IsImportedFrameworkFolderOnApple(
5658 std::string const& config) const
5659{
5660 if (this->IsApple() && this->IsImported() &&
5661 (this->GetType() == cmStateEnums::STATIC_LIBRARY ||
5662 this->GetType() == cmStateEnums::SHARED_LIBRARY ||
5663 this->GetType() == cmStateEnums::UNKNOWN_LIBRARY)) {
5664 std::string cfg = config;
5665 if (cfg.empty() && this->GetGlobalGenerator()->IsXcode()) {
5666 // FIXME(#25515): Remove the need for this workaround.
5667 // The Xcode generator queries include directories without any
5668 // specific configuration. Pick one in case this target does
5669 // not set either IMPORTED_LOCATION or IMPORTED_CONFIGURATIONS.
5670 cfg =
5671 this->Makefile->GetGeneratorConfigs(cmMakefile::IncludeEmptyConfig)[0];
5672 }
5673 return cmSystemTools::IsPathToFramework(this->GetLocation(cfg));
5674 }
5675
5676 return false;
5677}
5678
5679bool cmGeneratorTarget::IsAppBundleOnApple() const
5680{

Callers 3

GetIncludeDirectoriesMethod · 0.95
AddTargetItemMethod · 0.80
handleSystemIncludesDepFunction · 0.80

Calls 8

IsAppleMethod · 0.95
IsImportedMethod · 0.95
GetTypeMethod · 0.95
GetGlobalGeneratorMethod · 0.95
GetGeneratorConfigsMethod · 0.80
emptyMethod · 0.45
IsXcodeMethod · 0.45
GetLocationMethod · 0.45

Tested by

no test coverage detected