diff --git a/README.md b/README.md index 085a62ec..b05611c2 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Yoga is an embeddable and performant flexbox layout engine with bindings for mul ## Building -Yoga's main implementation targets C++ 14 with accompanying build logic in CMake. A wrapper is provided to build the main library and run unit tests. +Yoga's main implementation targets C++ 17 with accompanying build logic in CMake. A wrapper is provided to build the main library and run unit tests. ```sh ./unit_tests diff --git a/Yoga.podspec b/Yoga.podspec index f5d27beb..bd050ade 100644 --- a/Yoga.podspec +++ b/Yoga.podspec @@ -32,7 +32,7 @@ Pod::Spec.new do |spec| '-Wall', '-Werror', '-Wextra', - '-std=c++14', + '-std=c++17', '-fPIC' ] spec.source_files = 'yoga/**/*.{h,cpp}' diff --git a/cmake/project-defaults.cmake b/cmake/project-defaults.cmake index b6b37bcc..d02a2836 100644 --- a/cmake/project-defaults.cmake +++ b/cmake/project-defaults.cmake @@ -3,7 +3,7 @@ # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_VISIBILITY_PRESET hidden) set(CMAKE_POSITION_INDEPENDENT_CODE ON) diff --git a/javascript/CMakeLists.txt b/javascript/CMakeLists.txt index 3feeb548..1fe28c16 100644 --- a/javascript/CMakeLists.txt +++ b/javascript/CMakeLists.txt @@ -14,7 +14,7 @@ file(GLOB SOURCES CONFIGURE_DEPENDS include_directories(..) -set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD 17) add_compile_definitions( EMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES=0)