Skip to content

Commit c9fa24c

Browse files
authored
feat!: update C++ standard to C++20 (#149)
### Briefly, what does this PR introduce? This PR upgrades minimum required C++ standard to C++20. Already required for EICrecon, so no one will be cut off by this. ### What kind of change does this PR introduce? - [ ] Bug fix (issue #__) - [x] New feature (issue: modernization woohoo) - [ ] Documentation update - [ ] Other: __ ### Please check if this PR fulfills the following: - [ ] Tests for the changes have been added - [ ] Documentation has been added / updated - [ ] Changes have been communicated to collaborators ### Does this PR introduce breaking changes? What changes might users need to make to their code? Yes, C++20 required. ### Does this PR change default behavior? No.
1 parent 018d09d commit c9fa24c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ else()
3030
endif()
3131

3232
# C++ standard
33-
set(CMAKE_CXX_STANDARD_MIN 17)
34-
set(CMAKE_CXX_STANDARD 17 CACHE STRING "Set the C++ standard to be used")
33+
set(CMAKE_CXX_STANDARD_MIN 20)
34+
set(CMAKE_CXX_STANDARD 20 CACHE STRING "Set the C++ standard to be used")
3535
if(CMAKE_CXX_STANDARD LESS CMAKE_CXX_STANDARD_MIN)
3636
message(
3737
FATAL_ERROR

0 commit comments

Comments
 (0)