Skip to content

Commit b87c189

Browse files
author
patricejiang
committed
[v4] remove ios cmake.toolchain.file
update cmake generator parameters for iOS
1 parent 21e58c1 commit b87c189

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugins/plugin_compile/project_compile.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -888,9 +888,8 @@ def build(self, platform):
888888
# iOS need to generate Xcode project file first
889889
if platform == 'ios':
890890
engine_dir = self.get_engine_dir()
891-
ios_cmake_toolchain_file = os.path.join(engine_dir, 'cmake/ios.toolchain.cmake')
892-
self._run_cmd('cmake %s -GXcode -DCMAKE_TOOLCHAIN_FILE=%s' %
893-
( os.path.relpath(cmakefile_dir, build_dir), ios_cmake_toolchain_file) )
891+
self._run_cmd('cmake %s -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos' %
892+
( os.path.relpath(cmakefile_dir, build_dir) ) )
894893
elif platform == 'mac':
895894
self._run_cmd('cmake -GXcode %s' % os.path.relpath(cmakefile_dir, build_dir))
896895
else:

0 commit comments

Comments
 (0)