Skip to content

Commit e14646e

Browse files
Set minum C++20
This resolves #11
1 parent 37abed8 commit e14646e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
cmake_minimum_required(VERSION 3.25)
44

5-
project(beman.scope DESCRIPTION "Generic Scope Guard" LANGUAGES CXX)
5+
project(beman.scope DESCRIPTION "Generic Scope Guard" LANGUAGES CXX
6+
7+
set(CMAKE_CXX_STANDARD 20) # Set the C++ standard to C++20
8+
set(CMAKE_CXX_STANDARD_REQUIRED ON) # Ensure the standard is required
9+
set(CMAKE_CXX_EXTENSIONS OFF) # Disable compiler-specific extensions
610

711
enable_testing()
812

0 commit comments

Comments
 (0)