From dc08d95fc9cfcba80454a4dc07a1d478eeef8b3f Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Mon, 3 Mar 2014 15:00:59 +0100 Subject: cmake: Only do the XCode sysroot magic when building *for* iOS/OSX --- cerbero/build/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3