From 50f92fe528e77da82197fd947d1cf9b0a82a0c7d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 5 Feb 2020 21:20:01 -0800 Subject: [PATCH] Update to C++14 --- .clang-format | 2 +- CMakeLists.txt | 4 ++-- README.md | 6 +----- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.clang-format b/.clang-format index 7b1e90a..bcf7e74 100644 --- a/.clang-format +++ b/.clang-format @@ -53,7 +53,7 @@ SpacesInAngles: 'false' SpacesInCStyleCastParentheses: 'false' SpacesInParentheses: 'false' SpacesInSquareBrackets: 'false' -Standard: Cpp11 +Standard: Cpp14 TabWidth: '4' UseTab: Never diff --git a/CMakeLists.txt b/CMakeLists.txt index ed718b6..4c1c16e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,8 +18,8 @@ include(GNUInstallDirs) find_package(OpenAL REQUIRED) find_package(Threads) -# Require C++11 -set(CMAKE_CXX_STANDARD 11) +# Require C++14 +set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED TRUE) set(CXX_FLAGS ) diff --git a/README.md b/README.md index a663369..ae5e469 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Building ### Dependencies Before even building, Alure requires the OpenAL development files installed, for example, through Creative's OpenAL SDK (available from openal.org) or from -OpenAL Soft. Additionally you will need a C++11 or above compliant compiler to +OpenAL Soft. Additionally you will need a C++14 or above compliant compiler to be able to build Alure. These following dependencies are only needed to *automatically* support the @@ -84,8 +84,6 @@ you should have something that looks like the following output if you have every single dependency: -- Found OpenAL: C:/msys64/mingw64/lib/libopenal.dll.a - -- Performing Test HAVE_STD_CXX11 - -- Performing Test HAVE_STD_CXX11 - Success -- Performing Test HAVE_WALL_SWITCH -- Performing Test HAVE_WALL_SWITCH - Success -- Performing Test HAVE_WEXTRA_SWITCH @@ -120,8 +118,6 @@ Then inside `build`, running `cmake ..` may gives you something similar to the following -- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so - -- Performing Test HAVE_STD_CXX11 - -- Performing Test HAVE_STD_CXX11 - Success -- Performing Test HAVE_WALL_SWITCH -- Performing Test HAVE_WALL_SWITCH - Success -- Performing Test HAVE_WEXTRA_SWITCH -- 2.11.4.GIT