| 4978 | } |
| 4979 | |
| 4980 | void 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 | |
| 5008 | void cmGlobalXCodeGenerator::ComputeObjectDirArch(cmMakefile* mf) |
| 5009 | { |
no test coverage detected