From b1cf242c5f381defffcdd92f5044c33e8346ac8a Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 6 Dec 2019 14:10:17 +0300 Subject: [PATCH] Switch to Xcode generator for macOS. --- run_cmake.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/run_cmake.py b/run_cmake.py index b926ce5..1025a2e 100644 --- a/run_cmake.py +++ b/run_cmake.py @@ -15,14 +15,15 @@ def run(project, arguments): for arg in arguments: if arg == 'debug': cmake.append('-DCMAKE_BUILD_TYPE=Debug') - elif arg != 'fresh': + elif arg != 'force': cmake.append(arg) if sys.platform == 'win32': cmake.append('-AWin32') - elif sys.platform != 'darwin': - if not '-DCMAKE_BUILD_TYPE=Debug' in cmake: - cmake.append('-DCMAKE_BUILD_TYPE=Release') + elif sys.platform == 'darwin': + cmake.append('-GXcode') + elif not '-DCMAKE_BUILD_TYPE=Debug' in cmake: + cmake.append('-DCMAKE_BUILD_TYPE=Release') specialTarget = '' specialTargetFile = scriptPath + '/../' + project + '/build/target' @@ -38,7 +39,7 @@ def run(project, arguments): if not os.path.exists(basePath): os.mkdir(basePath) - elif 'fresh' in arguments: + elif 'force' in arguments: paths = os.listdir(basePath) for path in paths: if path.lower().startswith('cmake'):