aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--setup.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 885ab9865..da11ad0ca 100644
--- a/setup.py
+++ b/setup.py
@@ -825,6 +825,12 @@ class pyside_build(_build):
if OPTION_OSX_SYSROOT:
cmake_cmd.append("-DCMAKE_OSX_SYSROOT={}".format(OPTION_OSX_SYSROOT))
+ else:
+ latest_sdk_path = run_process_output(['xcrun', '--show-sdk-path'])
+ if latest_sdk_path:
+ latest_sdk_path = latest_sdk_path[0]
+ cmake_cmd.append("-DCMAKE_OSX_SYSROOT={}".format(latest_sdk_path))
+
if not OPTION_SKIP_CMAKE:
log.info("Configuring module %s (%s)..." % (extension, module_src_dir))