Skip to content

Commit 8199563

Browse files
committed
Set macOS minimum deployment target to 10.13 in CMake
Adds CMAKE_OSX_DEPLOYMENT_TARGET default to platform_macosx.cmake. Defaults to 10.13 but respects user-specified values.
1 parent 3cee939 commit 8199563

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

proj/cmake/platform_macosx.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ if( NOT CMAKE_OSX_ARCHITECTURES )
77
set( CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "macOS architectures" FORCE )
88
endif()
99

10+
# Set minimum deployment target to macOS 10.13
11+
if( NOT CMAKE_OSX_DEPLOYMENT_TARGET )
12+
set( CMAKE_OSX_DEPLOYMENT_TARGET "10.13" CACHE STRING "macOS minimum deployment target" FORCE )
13+
endif()
14+
1015
# append mac specific source files
1116
list( APPEND SRC_SET_COCOA
1217
${CINDER_SRC_DIR}/cinder/CaptureImplAvFoundation.mm

0 commit comments

Comments
 (0)