From da60aa8802a5f00a1590e3a3b518a19ba82beda1 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 10 Mar 2023 01:28:19 +0100 Subject: [PATCH] Set macos deployment target in cmake list relates to #1401 --- CMakeLists.txt | 1 + toolchain.cmake | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 49bbe226..490136d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ set( set(CMAKE_CXX_STANDARD 20 CACHE STRING "C++ standard") set(CMAKE_CXX_STANDARD_REQUIRED ON CACHE BOOL "Require C++ standard to be supported") set(CMAKE_POSITION_INDEPENDENT_CODE ON CACHE BOOL "compile as PIC by default") +set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "macos deployment target") option(HUNTER_ENABLED "Enable Hunter package manager" OFF) include("cmake/HunterGate.cmake") diff --git a/toolchain.cmake b/toolchain.cmake index 3e80767f..bf41e07a 100644 --- a/toolchain.cmake +++ b/toolchain.cmake @@ -1,4 +1,4 @@ set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) -set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15) \ No newline at end of file +set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "macos deployment target")