fixed: distftp needs to know mac sdk used

This commit is contained in:
Nick Bolton 2014-02-14 17:01:47 +00:00
parent b385a459ad
commit a37fc0896b
2 changed files with 7 additions and 0 deletions

View File

@ -54,6 +54,9 @@ class XcodeGenerator(Generator):
super(XcodeGenerator, self).__init__('Xcode')
def getBinDir(self, target=''):
if target == "":
return super(XcodeGenerator, self).getBinDir(target)
xcodeTarget = target[0].upper() + target[1:]
return super(XcodeGenerator, self).getBinDir(target) + '/' + xcodeTarget

View File

@ -816,6 +816,10 @@ class InternalCommands:
return major + '.' + minor + '.' + rev
def distftp(self, type, ftp):
config = self.getConfig()
if config.has_option("cmake", "mac_sdk"):
self.macSdk = config.get("cmake", "mac_sdk")
if not type:
raise Exception('Type not specified.')