summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-03-03 15:00:59 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-03-03 15:49:22 +0100
commitdc08d95fc9cfcba80454a4dc07a1d478eeef8b3f (patch)
tree76c3acf4b40d0805f167c68e81d5f8cf85521d87
parenta85077d77ee71213fd1e7c63d8ee58b783db97f8 (diff)
cmake: Only do the XCode sysroot magic when building *for* iOS/OSX
-rw-r--r--cerbero/build/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cerbero/build/build.py b/cerbero/build/build.py
index 4a94ab32..0f0cf53e 100644
--- a/cerbero/build/build.py
+++ b/cerbero/build/build.py
@@ -311,7 +311,7 @@ class CMake (MakefilesBase):
self.configure_options += ' -G\\"Unix Makefiles\\"'
# FIXME: Maybe export the sysroot properly instead of doing regexp magic
- if self.config.platform in [Platform.DARWIN, Platform.IOS]:
+ if self.config.target_platform in [Platform.DARWIN, Platform.IOS]:
r = re.compile(r".*-isysroot ([^ ]+) .*")
sysroot = r.match(cflags).group(1)
self.configure_options += ' -DCMAKE_OSX_SYSROOT=%s' % sysroot