Clang: Don't overwrite c++11 compile option value with c++14 flag.

This commit is contained in:
Stephen Kelly 2014-09-17 14:56:16 +02:00
parent 56af886603
commit 0b80fc350a
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 2.1)
endif() endif()
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.4) if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.4)
set(CMAKE_CXX11_STANDARD_COMPILE_OPTION "-std=c++1y") set(CMAKE_CXX14_STANDARD_COMPILE_OPTION "-std=c++1y")
set(CMAKE_CXX11_EXTENSION_COMPILE_OPTION "-std=gnu++1y") set(CMAKE_CXX14_EXTENSION_COMPILE_OPTION "-std=gnu++1y")
endif() endif()
set(CMAKE_CXX_STANDARD_DEFAULT 98) set(CMAKE_CXX_STANDARD_DEFAULT 98)