Skip to content

Commit 5579cd9

Browse files
committed
fixed macOS deployment target for ARM
1 parent aac3284 commit 5579cd9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/oidn_platform.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@ endif()
149149

150150
if(APPLE)
151151
# Make sure code runs on older macOS versions
152-
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.11)
152+
if(OIDN_ARCH STREQUAL "ARM64")
153+
set(CMAKE_OSX_DEPLOYMENT_TARGET 11.0)
154+
else()
155+
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.11)
156+
endif()
153157
# Link against libc++ which supports C++11 features
154158
append(OIDN_CXX_FLAGS "-stdlib=libc++")
155159
endif()

0 commit comments

Comments
 (0)