diff --git a/CMakeLists.txt b/CMakeLists.txt index f189e2b9..fbcb3358 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,11 @@ cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) # - switch to 3.1.0 features # the docs say we need to set this up prior to project() -set(CMAKE_OSX_DEPLOYMENT_TARGET "10.8") +# the docs don't say this, but the CACHE part is important; see https://stackoverflow.com/questions/34208360/cmake-seems-to-ignore-cmake-osx-deployment-target +# TODO figure out what other variables must be set with CACHE +# TODO figure out if FORCE is needed here +# TODO figure out whether STRING "" is best or if something else is better; also what FORCE does because I forget and later I say it's needed +set(CMAKE_OSX_DEPLOYMENT_TARGET "10.8" CACHE STRING "" FORCE) # we want to disable incremental linking # see also: diff --git a/darwin/uipriv_darwin.h b/darwin/uipriv_darwin.h index 56a576d4..26366520 100644 --- a/darwin/uipriv_darwin.h +++ b/darwin/uipriv_darwin.h @@ -1,4 +1,5 @@ // 6 january 2015 +// note: as of OS X Sierra, the -mmacosx-version-min compiler options governs deprecation warnings; keep these around anyway just in case #define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_8 #define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_8 #import