diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-06-18 12:01:52 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-06-19 13:02:21 +0300 |
commit | e9a7f4d389047cfecc0b3150fbf406f65cf5117d (patch) | |
tree | 9399734da9d1f012fa9dd9103b67b11de3aa2d56 /CMakeLists.txt | |
parent | 1f5f3b558848e84abcd5703353fc1a3328099aed (diff) |
Upgrade C++ standard to C++17
Ref T76783
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
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() |