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:
parent
a67df5ad94
commit
ecbe6099f3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue