diff --git a/setup.py b/setup.py index f093894..e4ca0ae 100644 --- a/setup.py +++ b/setup.py @@ -68,6 +68,7 @@ def build_extension(self, ext): env['CXXFLAGS'] = '{} -DVERSION_INFO=\\"{}\\"'.format(env.get('CXXFLAGS', ''), self.distribution.get_version()) if not os.path.exists(self.build_temp): os.makedirs(self.build_temp) + cmake_args += ['-DCMAKE_OSX_ARCHITECTURES:STRING="x86_64;arm64"'] subprocess.check_call(['cmake'] + cmake_args + [ext.sourcedir], cwd=self.build_temp, env=env) subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp) print() # Add an empty line for cleaner output