From dd083b663403003a8d47cc50d4f317788d1113c1 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Sun, 3 Oct 2021 21:40:39 +0200 Subject: [PATCH] MacOS fix 5 --- CMakeLists.txt | 3 +++ core/CMakeLists.txt | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0945b88b..a30aa0e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,7 @@ cmake_minimum_required(VERSION 3.13) + +set(CMAKE_OSX_DEPLOYMENT_TARGET "" CACHE STRING "Minimum OS X deployment version" FORCE) + project(sdrpp) if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 5f8b3c67..bbe63103 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -19,7 +19,6 @@ if (MSVC) target_compile_options(sdrpp_core PRIVATE /O2 /Ob2 /std:c++17 /EHsc) elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") target_compile_options(sdrpp_core PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup) - target_link_options(sdrpp_core PRIVATE -mmacosx-version-min=10.10) else () target_compile_options(sdrpp_core PRIVATE -O3 -std=c++17) endif ()