Build with C++20

This commit is contained in:
Skye Deving 2021-01-09 11:45:53 -06:00
parent d73acf4d0d
commit 32cf9e11b7
2 changed files with 4 additions and 1 deletions

View File

@ -59,6 +59,9 @@ jobs:
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
env:
CC: gcc-10
CXX: g++-10
working-directory: ${{github.workspace}}/build
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.

View File

@ -4,7 +4,7 @@ cmake_policy(SET CMP0076 NEW) # silence warning
project(AttorneyOnline)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTOMOC ON)