diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d7bfc891..40886ced8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ option(SAMAPI_EXPORT "Export of ssc binaries to the SAM_api directory; for Unix, # if(APPLE) - set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version") + set(CMAKE_OSX_DEPLOYMENT_TARGET "12" CACHE STRING "Minimum OS X deployment version") endif() if (UNIX AND NOT CMAKE_C_COMPILER) @@ -102,7 +102,7 @@ function(set_default_compile_options target) endif() endif() if (SAMAPI_EXPORT AND APPLE) - SET(MAIN_CFLAGS "${MAIN_CFLAGS} -mmacosx-version-min=10.15" ) + SET(MAIN_CFLAGS "${MAIN_CFLAGS} -mmacosx-version-min=12" ) endif() set_target_properties(${target} PROPERTIES COMPILE_FLAGS ${MAIN_CFLAGS}) endfunction() diff --git a/solarpilot/CMakeLists.txt b/solarpilot/CMakeLists.txt index a16563561..7aabd7775 100644 --- a/solarpilot/CMakeLists.txt +++ b/solarpilot/CMakeLists.txt @@ -7,7 +7,7 @@ set(CMAKE_VERBOSE_MAKEFILE ON) if(APPLE) - set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version") + set(CMAKE_OSX_DEPLOYMENT_TARGET "12" CACHE STRING "Minimum OS X deployment version") endif() diff --git a/ssc/CMakeLists.txt b/ssc/CMakeLists.txt index 84685a432..a6bd362d0 100644 --- a/ssc/CMakeLists.txt +++ b/ssc/CMakeLists.txt @@ -220,7 +220,7 @@ if(UNIX) set_property(TARGET ssc PROPERTY PREFIX "lib") set(CMAKE_SHARED_LIBRARY_SUFFIX ".so") if (APPLE) - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.15") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=12") add_custom_command( TARGET ssc POST_BUILD