File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 strategy :
1818 matrix :
1919 sys :
20- # - { compiler: ' gcc', version: '11' }
20+ - { compiler: " gcc", version: "11" }
2121 - { compiler: "gcc", version: "12" }
2222 - { compiler: "gcc", version: "13" }
2323 - { compiler: "gcc", version: "14" }
2828
2929 steps :
3030 - name : Install GCC
31- if : matrix.sys.compiler == ' gcc'
31+ if : matrix.sys.compiler == " gcc"
3232 uses : egor-tensin/setup-gcc@v1
3333 with :
3434 version : ${{matrix.sys.version}}
Original file line number Diff line number Diff line change @@ -12,6 +12,17 @@ project(xtl)
1212
1313set (XTL_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /include)
1414
15+ # Enforce C++20
16+ if (DEFINED CMAKE_CXX_STANDARD )
17+ if (CMAKE_CXX_STANDARD LESS 20)
18+ message (FATAL_ERROR "xtl requires at least C++20" )
19+ endif ()
20+ else ()
21+ set (CMAKE_CXX_STANDARD 20)
22+ endif ()
23+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
24+ set (CMAKE_CXX_EXTENSIONS OFF )
25+
1526# Versioning
1627# ===========
1728
You can’t perform that action at this time.
0 commit comments