Skip to content

Commit ff4889d

Browse files
俞子丰俞子丰
authored andcommitted
update to std c++ 20
1 parent b858dd2 commit ff4889d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists_crosscompile.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ include(CheckPythonModuleExists)
2020

2121
check_python_module_exists(PYTHON_HAVE_MARKUPSAFE markupsafe)
2222

23-
# Stick to std c++17 for some code (std::unique_ptr to fwd-decl type) can not be compiled under c++23 after llvm upgrade
23+
# Stick to std c++20 for some code (std::unique_ptr to fwd-decl type) can not be compiled under c++23 after llvm upgrade
2424
# if (NOT CMAKE_CXX_STANDARD)
25-
set(CMAKE_CXX_STANDARD 17)
25+
set(CMAKE_CXX_STANDARD 20)
2626
# endif()
2727

2828
if (NOT CMAKE_C_STANDARD)

CMakeLists_default.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ include(CheckPythonModuleExists)
2020

2121
check_python_module_exists(PYTHON_HAVE_MARKUPSAFE markupsafe)
2222

23-
# Stick to std c++17 for some code (std::unique_ptr to fwd-decl type) can not be compiled under c++23 after llvm upgrade
23+
# Stick to std c++20 for some code (std::unique_ptr to fwd-decl type) can not be compiled under c++23 after llvm upgrade
2424
# if (NOT CMAKE_CXX_STANDARD)
25-
set(CMAKE_CXX_STANDARD 17)
25+
set(CMAKE_CXX_STANDARD 20)
2626
# endif()
2727

2828
if (NOT CMAKE_C_STANDARD)

0 commit comments

Comments
 (0)