diff options
author | Sam Clegg <sbc@chromium.org> | 2021-11-01 17:27:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-01 17:27:42 -0700 |
commit | e0aacbc18b0d2319028714c30a1c09d3e31982c1 (patch) | |
tree | 1217d03ce1e0437861c5990b29b9027633112722 | |
parent | bbfee5cc3a463b1bc7f54414ccaf2e47bee3e216 (diff) | |
download | binaryen-e0aacbc18b0d2319028714c30a1c09d3e31982c1.tar.gz binaryen-e0aacbc18b0d2319028714c30a1c09d3e31982c1.tar.bz2 binaryen-e0aacbc18b0d2319028714c30a1c09d3e31982c1.zip |
Set CMAKE_OSX_DEPLOYMENT_TARGET (#4300)
This version represents that current reality although we
would like to lower this for increased compatibility. See: #4299
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cee64261e..0f7e939c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,12 @@ # Version set according the the cmake versions available in Ubuntu/Bionic: # https://packages.ubuntu.com/bionic/cmake cmake_minimum_required(VERSION 3.10.2) + +# Needed for C++17 (std::variant) +# TODO(https://github.com/WebAssembly/binaryen/issues/4299): We need +# to reduce this for compatability with emsdk. +set(CMAKE_OSX_DEPLOYMENT_TARGET "10.14" CACHE STRING "Minimum OS X deployment version") + project(binaryen LANGUAGES C CXX VERSION 102) include(GNUInstallDirs) |