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

Method ComputeArchitectures

Source/cmGlobalXCodeGenerator.cxx:4980–5006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4978}
4979
4980void cmGlobalXCodeGenerator::ComputeArchitectures(cmMakefile* mf)
4981{
4982 this->Architectures.clear();
4983 cmList::append(this->Architectures,
4984 mf->GetDefinition("CMAKE_OSX_ARCHITECTURES"));
4985
4986 if (this->Architectures.empty()) {
4987 cmList::append(this->Architectures,
4988 mf->GetDefinition("_CMAKE_APPLE_ARCHS_DEFAULT"));
4989 }
4990
4991 if (this->Architectures.empty()) {
4992 // With no ARCHS we use ONLY_ACTIVE_ARCH and possibly a
4993 // platform-specific default ARCHS placeholder value.
4994 // Look up the arch that Xcode chooses in this case.
4995 if (cmValue arch = mf->GetDefinition("CMAKE_XCODE_ARCHS")) {
4996 this->ObjectDirArchDefault = *arch;
4997 // We expect only one arch but choose the first just in case.
4998 std::string::size_type pos = this->ObjectDirArchDefault.find(';');
4999 if (pos != std::string::npos) {
5000 this->ObjectDirArchDefault = this->ObjectDirArchDefault.substr(0, pos);
5001 }
5002 }
5003 }
5004
5005 this->ComputeObjectDirArch(mf);
5006}
5007
5008void cmGlobalXCodeGenerator::ComputeObjectDirArch(cmMakefile* mf)
5009{

Callers 2

EnableLanguageMethod · 0.95
CreateXCodeObjectsMethod · 0.95

Calls 7

ComputeObjectDirArchMethod · 0.95
appendFunction · 0.85
clearMethod · 0.45
GetDefinitionMethod · 0.45
emptyMethod · 0.45
findMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected