diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 4a257ee1b..abfce9218 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -8,7 +8,7 @@ jobs: matrix: build_type: [Debug] option: [default, ref, shared, no_sample, no_data, no_fbx, no_gltf, no_tests] - cxx_standard: ['11'] + cxx_standard: ['17'] include: - build_type: Release option: default diff --git a/README.md b/README.md index dae235675..15311e865 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Documentation and samples are available from [ozz-animation website](http://guil Supported platforms ------------------- -ozz-animation is tested on WebAssembly, Linux, macOS and Windows, for x86, x86-64 and ARM architectures. The run-time code (ozz_base, ozz_animation, ozz_geometry) depends only on c++11, on the C and the C++ standard libraries, and has no OS specific code. Portability to any other platform shouldn't be an issue. +ozz-animation is tested on WebAssembly, Linux, macOS and Windows, for x86, x86-64 and ARM architectures. The run-time code (ozz_base, ozz_animation, ozz_geometry) depends only on c++17, on the C and the C++ standard libraries, and has no OS specific code. Portability to any other platform shouldn't be an issue. Samples, tools and tests depend on external libraries (glfw, tinygltf, Fbx SDK, jsoncpp, gtest, ...), which aren't need to ship with ozz-animation runtime. diff --git a/build-utils/cmake/compiler_settings.cmake b/build-utils/cmake/compiler_settings.cmake index 439fde8a3..e17738362 100644 --- a/build-utils/cmake/compiler_settings.cmake +++ b/build-utils/cmake/compiler_settings.cmake @@ -29,9 +29,9 @@ set(cxx_all_flags # -------------------------------------- # Cross compiler compilation flags -# Requires C++11 +# Requires C++17 if(NOT CMAKE_CXX_STANDARD) - set(CMAKE_CXX_STANDARD 11) + set(CMAKE_CXX_STANDARD 17) endif() set(CMAKE_CXX_STANDARD_REQUIRED ON)