From dbcc6b4818c9c23791effd2787fa5b180a8d7542 Mon Sep 17 00:00:00 2001 From: Pierre Wendling <50808272+FtZPetruska@users.noreply.github.com> Date: Sun, 5 Mar 2023 02:38:22 -0500 Subject: [PATCH] [CMake] Do not force CMAKE_OSX_DEPLOYMENT_TARGET (#2581) This leaves the default of 10.15, but allows a user to change it in the cache. When using Homebrew libraries on newer macOS version, the linker emits warnings: ``` ld: warning: dylib (/opt/homebrew/lib/libSDL2.dylib) was built for newer macOS version (13.0) than being linked (11.0) ``` --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a913c3e1..2bdab8156 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.16.0 FATAL_ERROR) set(CMAKE_SYSTEM_VERSION 10.0 CACHE STRING "" FORCE) set(CMAKE_CXX_STANDARD 20 CACHE STRING "The C++ standard to use") -set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version" FORCE) +set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version") project(Ship VERSION 6.1.0 LANGUAGES C CXX) set(PROJECT_BUILD_NAME "KHAN ALFA" CACHE STRING "")