CMake: Use CMAKE_CXX_STANDARD instead of passing -std=c++14

Available since CMake 3.1
This commit is contained in:
Michael Maltese 2017-01-21 14:37:47 -08:00
parent a3557ed199
commit 4c580bc3b7
1 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,5 @@
check_and_add_flag(CXX14 -std=c++14)
if(NOT FLAG_CXX_CXX14)
check_and_add_flag(HAS_CXX1Y -std=c++1y)
endif()
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_EXTENSIONS OFF)
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
add_definitions(-DNOMINMAX)