solidity/cmake/toolchains/cxx20.cmake
2019-08-13 16:19:18 +02:00

5 lines
178 B
CMake

# 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)