From 8f1ba1fafeabdade028f1ee973edf5c728c027d1 Mon Sep 17 00:00:00 2001 From: SSE4 Date: Sat, 6 Jun 2020 18:09:27 +0700 Subject: [PATCH] - fix iOS CMake architecture Signed-off-by: SSE4 --- conans/client/build/cmake_flags.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conans/client/build/cmake_flags.py b/conans/client/build/cmake_flags.py index 9a76bbb9ded..6d6671b6180 100644 --- a/conans/client/build/cmake_flags.py +++ b/conans/client/build/cmake_flags.py @@ -294,9 +294,9 @@ def get_definitions(self): definitions.update(build_type_definition(self._forced_build_type, build_type, self._generator, self._output)) - if str(os_) == "Macos": - if arch == "x86": - definitions["CMAKE_OSX_ARCHITECTURES"] = "i386" + if tools.is_apple_os(os_): + definitions["CMAKE_OSX_ARCHITECTURES"] = tools.to_apple_arch(arch) + definitions["CMAKE_OSX_SYSROOT"] = tools.XCRun(self._conanfile.settings).sdk_path definitions.update(self._cmake_cross_build_defines()) definitions.update(self._get_cpp_standard_vars())