Skip to content

Commit

Permalink
Set CMAKE_OSX_DEPLOYMENT_TARGET to 10.14 in CMakeLists.txt (#2528)
Browse files Browse the repository at this point in the history
wabt doesn't currently build when targeting 10.13 because it uses
std::optional::value which is not available on 10.13.

See: #2527
  • Loading branch information
sbc100 authored Jan 10, 2025
1 parent ea193b4 commit d1c9d90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# 10.13 doesn't support std::optional::value (becuase it depends on
# std::bad_optional_acces).
# See: https://github.com/WebAssembly/wabt/issues/2527
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.14" CACHE STRING "Minimum OS X deployment version")

# Check if wabt is being used directly or via add_subdirectory, FetchContent, etc
string(COMPARE EQUAL "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_SOURCE_DIR}" PROJECT_IS_TOP_LEVEL)

Expand Down

0 comments on commit d1c9d90

Please sign in to comment.