Skip to content

Commit

Permalink
Fix build on macOS arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Feb 20, 2024
1 parent a3d564d commit 61bc192
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ext/CMake-Build-Platforms.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ function Build-Project {
$NETPlatform = "osx"
$NETSharedLibExtension = "dylib"
$LocalCMakeArgs += "-DCMAKE_BUILD_TYPE=$CMakeConfig"
$LocalCMakeArgs += "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.10"
if ($NETArch -eq "arm64") {
$LocalCMakeArgs += "-DCMAKE_OSX_ARCHITECTURES=arm64"
}
elseif ($NETArch -eq "x64") {
$LocalCMakeArgs += "-DCMAKE_OSX_ARCHITECTURES=x86_64"
}
}
elseif ($IsWindows) {
$MsvcArch = $NETArch
Expand Down

0 comments on commit 61bc192

Please sign in to comment.