Set default Mac target version in CMake to avoid extra warnings

This commit is contained in:
Mike Gelfand 2021-08-17 00:32:32 +03:00
parent 407201c207
commit 8c9faf1f71
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,10 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
set(CMAKE_MACOSX_RPATH ON)
if(CMAKE_OSX_DEPLOYMENT_TARGET STREQUAL "")
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.10")
endif()
include(CheckIncludeFile)
include(CheckIncludeFiles)
include(CheckFunctionExists)