Skip to content

Commit b8c35d5

Browse files
committed
test
1 parent 7655928 commit b8c35d5

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
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" }
@@ -28,7 +28,7 @@ jobs:
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}}

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ project(xtl)
1212

1313
set(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

0 commit comments

Comments
 (0)