diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-09-15 23:16:43 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2012-09-19 13:31:29 (GMT) |
commit | 78bfee35d5bd5cba879d92eda4310d25bc54b30e (patch) | |
tree | b8263240be0775e713a985546a2176ca8ac49fb5 /Source/cmGeneratorTarget.cxx | |
parent | 4f5384e75c6a00d110d3fa3f555a3f6a4f31bb46 (diff) | |
download | CMake-78bfee35d5bd5cba879d92eda4310d25bc54b30e.zip CMake-78bfee35d5bd5cba879d92eda4310d25bc54b30e.tar.gz CMake-78bfee35d5bd5cba879d92eda4310d25bc54b30e.tar.bz2 |
Make cmLocalGenerator::AddArchitectureFlags take a cmGeneratorTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index e53f35e..96f0ee8 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -315,3 +315,24 @@ cmGeneratorTarget::GetLinkInformation(const char* config) } return i->second; } + +//---------------------------------------------------------------------------- +void cmGeneratorTarget::GetAppleArchs(const char* config, + std::vector<std::string>& archVec) +{ + const char* archs = 0; + if(config && *config) + { + std::string defVarName = "OSX_ARCHITECTURES_"; + defVarName += cmSystemTools::UpperCase(config); + archs = this->Target->GetProperty(defVarName.c_str()); + } + if(!archs) + { + archs = this->Target->GetProperty("OSX_ARCHITECTURES"); + } + if(archs) + { + cmSystemTools::ExpandListArgument(std::string(archs), archVec); + } +} |