errro for cxx20 standard
Using cmake 4.17.2
with gcc 10 installed, I have these lines in my CMakeLists.txt:
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
and I get the error:
Target "FOO" requires the language dialect "CXX20" (with compiler
extensions), but CMake does not know the compile flags to use to enable it.
No error if I drop back to
set(CMAKE_CXX_STANDARD 17)
Edited by Aaron Boxer