Switch to Xcode generator for macOS.
This commit is contained in:
parent
632ed315b2
commit
b1cf242c5f
1 changed files with 6 additions and 5 deletions
11
run_cmake.py
11
run_cmake.py
|
|
@ -15,14 +15,15 @@ def run(project, arguments):
|
||||||
for arg in arguments:
|
for arg in arguments:
|
||||||
if arg == 'debug':
|
if arg == 'debug':
|
||||||
cmake.append('-DCMAKE_BUILD_TYPE=Debug')
|
cmake.append('-DCMAKE_BUILD_TYPE=Debug')
|
||||||
elif arg != 'fresh':
|
elif arg != 'force':
|
||||||
cmake.append(arg)
|
cmake.append(arg)
|
||||||
|
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
cmake.append('-AWin32')
|
cmake.append('-AWin32')
|
||||||
elif sys.platform != 'darwin':
|
elif sys.platform == 'darwin':
|
||||||
if not '-DCMAKE_BUILD_TYPE=Debug' in cmake:
|
cmake.append('-GXcode')
|
||||||
cmake.append('-DCMAKE_BUILD_TYPE=Release')
|
elif not '-DCMAKE_BUILD_TYPE=Debug' in cmake:
|
||||||
|
cmake.append('-DCMAKE_BUILD_TYPE=Release')
|
||||||
|
|
||||||
specialTarget = ''
|
specialTarget = ''
|
||||||
specialTargetFile = scriptPath + '/../' + project + '/build/target'
|
specialTargetFile = scriptPath + '/../' + project + '/build/target'
|
||||||
|
|
@ -38,7 +39,7 @@ def run(project, arguments):
|
||||||
|
|
||||||
if not os.path.exists(basePath):
|
if not os.path.exists(basePath):
|
||||||
os.mkdir(basePath)
|
os.mkdir(basePath)
|
||||||
elif 'fresh' in arguments:
|
elif 'force' in arguments:
|
||||||
paths = os.listdir(basePath)
|
paths = os.listdir(basePath)
|
||||||
for path in paths:
|
for path in paths:
|
||||||
if path.lower().startswith('cmake'):
|
if path.lower().startswith('cmake'):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue