solidity/cmake/toolchains/cxx20.cmake

5 lines
178 B
CMake
Raw Normal View History

2019-08-09 09:28:22 +00:00
# Require C++20.
set(CMAKE_CXX_STANDARD 20) # This requires at least CMake 3.12 to understand this C++20 flag
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
set(CMAKE_CXX_EXTENSIONS OFF)