Skip to content

Commit 69578ec

Browse files
afrindmeta-codesync[bot]
authored andcommitted
Update default CMAKE_CXX_STANDARD from 17 to 20
Summary: Folly now requires C++20 and uses `consteval` and other C++20 features in its headers. Wangle depends on folly and includes these headers, so it must also compile with C++20. Without this change, the open source getdeps build fails when compiling wangle against folly. Differential Revision: D96033377 fbshipit-source-id: 48acb5e8c10d3e100082c40cf0cdb6799671ce74
1 parent 9160227 commit 69578ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

third-party/wangle/src/wangle/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
3333
include(CPack)
3434

3535
if(NOT CMAKE_CXX_STANDARD)
36-
set(CMAKE_CXX_STANDARD 17)
36+
set(CMAKE_CXX_STANDARD 20)
3737
set(CMAKE_CXX_STANDARD_REQUIRED ON)
3838
set(CMAKE_CXX_EXTENSIONS OFF)
3939
message(STATUS "setting C++ standard to C++${CMAKE_CXX_STANDARD}")

0 commit comments

Comments
 (0)