Skip to content

Commit d1c9d90

Browse files
authored
Set CMAKE_OSX_DEPLOYMENT_TARGET to 10.14 in CMakeLists.txt (#2528)
wabt doesn't currently build when targeting 10.13 because it uses std::optional::value which is not available on 10.13. See: #2527
1 parent ea193b4 commit d1c9d90

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
2424

2525
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
2626

27+
# 10.13 doesn't support std::optional::value (becuase it depends on
28+
# std::bad_optional_acces).
29+
# See: https://github.com/WebAssembly/wabt/issues/2527
30+
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.14" CACHE STRING "Minimum OS X deployment version")
31+
2732
# Check if wabt is being used directly or via add_subdirectory, FetchContent, etc
2833
string(COMPARE EQUAL "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_SOURCE_DIR}" PROJECT_IS_TOP_LEVEL)
2934

0 commit comments

Comments
 (0)