[Bf-blender-cvs] [e9a7f4d3890] master: Upgrade C++ standard to C++17

Sergey Sharybin noreply at git.blender.org
Fri Jun 19 12:03:02 CEST 2020


Commit: e9a7f4d389047cfecc0b3150fbf406f65cf5117d
Author: Sergey Sharybin
Date:   Thu Jun 18 11:01:52 2020 +0200
Branches: master
https://developer.blender.org/rBe9a7f4d389047cfecc0b3150fbf406f65cf5117d

Upgrade C++ standard to C++17

Ref T76783

===================================================================

M	CMakeLists.txt

===================================================================

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7374a54354f..c04f2600894 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1561,13 +1561,13 @@ if(WITH_PYTHON)
 endif()
 
 if(MSVC)
-  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++14")
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17")
 elseif(
   CMAKE_COMPILER_IS_GNUCC OR
   CMAKE_C_COMPILER_ID MATCHES "Clang" OR
   CMAKE_C_COMPILER_ID MATCHES "Intel"
 )
-  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
 else()
   message(FATAL_ERROR "Unknown compiler ${CMAKE_C_COMPILER_ID}, can't enable C++14 build")
 endif()



More information about the Bf-blender-cvs mailing list