CMakeLists: Compile as C++14 on non-windows targets

MSVC 2015 supports some aspects of C++14, such as constexpr min/max, etc.
This commit is contained in:
Lioncash 2015-09-29 22:43:30 -04:00
parent a67df5ad94
commit ecbe6099f3

View File

@ -65,7 +65,7 @@ endif()
message(STATUS "Target architecture: ${ARCHITECTURE}") message(STATUS "Target architecture: ${ARCHITECTURE}")
if (NOT MSVC) 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") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
if (ARCHITECTURE_x86_64) if (ARCHITECTURE_x86_64)