瀏覽代碼

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

Stephen Kelly 11 年之前
父節點
當前提交
0b80fc350a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Modules/Compiler/Clang-CXX.cmake

+ 2 - 2
Modules/Compiler/Clang-CXX.cmake

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