Skip to content

Commit f6784f8

Browse files
committed
ENH: Set minimum supported macOS deployment target directly in CMake configuration
The value of 10.11 was hard-coded for the external project build, but was not exposed at the SuperBuild level. This change makes the setting of the OSX_DEPLOYMENT_TARGET more transparent.
1 parent 7c667d3 commit f6784f8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ set(CMAKE_CXX_STANDARD "17")
1616

1717

1818
if(APPLE)
19+
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.11 CACHE STRING "Set the minimum supported OSX target" FORCE)
1920
set(osx_args
20-
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.11
21+
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=${CMAKE_OSX_DEPLOYMENT_TARGET}
2122
)
2223
endif()
2324

0 commit comments

Comments
 (0)