From ecbe6099f3a47510b2459cf96d113e6c69180052 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 29 Sep 2015 22:43:30 -0400 Subject: [PATCH] CMakeLists: Compile as C++14 on non-windows targets MSVC 2015 supports some aspects of C++14, such as constexpr min/max, etc. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 604362e57..edabd8b00 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,7 @@ endif() message(STATUS "Target architecture: ${ARCHITECTURE}") if (NOT MSVC) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-attributes -pthread") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wno-attributes -pthread") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") if (ARCHITECTURE_x86_64)