Skip to content

Commit 78c1f34

Browse files
azuwiswhoozle
authored andcommitted
make CMAKE_OSX_DEPLOYMENT_TARGET a cache variable
Allow users to override the macOS deployment target via cmake command line or cache configuration.
1 parent b1f89dc commit 78c1f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ message(STATUS "building for ${CMAKE_SYSTEM_NAME}")
2525

2626
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
2727
set(USB_BACKEND_DARWIN TRUE)
28-
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.13)
28+
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.13 CACHE STRING "Minimum OS X deployment version")
2929
find_program(OTOOL_BIN otool)
3030
endif()
3131

0 commit comments

Comments
 (0)