mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-02-20 18:42:23 +00:00
aedi: fix xcode project generation when sdk path is set
This commit is contained in:
parent
a2103b9819
commit
558129a734
1 changed files with 4 additions and 4 deletions
|
@ -411,14 +411,14 @@ class CMakeTarget(BuildTarget):
|
|||
args.append('-DCMAKE_SYSTEM_NAME=Darwin')
|
||||
args.append('-DCMAKE_SYSTEM_PROCESSOR=' + 'aarch64' if architecture == 'arm64' else architecture)
|
||||
|
||||
sdk_path = state.sdk_path()
|
||||
if sdk_path:
|
||||
args.append(f'-DCMAKE_OSX_SYSROOT={sdk_path}')
|
||||
|
||||
os_version = state.os_version()
|
||||
if os_version:
|
||||
args.append('-DCMAKE_OSX_DEPLOYMENT_TARGET=' + str(os_version))
|
||||
|
||||
sdk_path = state.sdk_path()
|
||||
if sdk_path:
|
||||
args.append(f'-DCMAKE_OSX_SYSROOT={sdk_path}')
|
||||
|
||||
args += state.options.to_list(CommandLineOptions.CMAKE_RULES)
|
||||
args.append(state.source / self.src_root)
|
||||
|
||||
|
|
Loading…
Reference in a new issue