We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d714331 commit 853496dCopy full SHA for 853496d
CMakeLists.txt
@@ -5,15 +5,15 @@ cmake_minimum_required(VERSION 3.25)
5
project(beman.scope DESCRIPTION "Generic Scope Guard" LANGUAGES CXX)
6
7
# Define an option for the C++ standard with a default of 20
8
-option(CXX_STANDARD "C++ standard to use (minimum C++20)" 20)
+# tbd remove: option(CXX_STANDARD "C++ standard to use (minimum C++20)" 20)
9
10
# Ensure the specified standard is at least C++20
11
-if(CXX_STANDARD LESS 20)
+if(CMAKE_CXX_STANDARD LESS 20)
12
message(FATAL_ERROR "The minimum required C++ standard is C++20")
13
endif()
14
15
# Set the C++ standard based on the user input
16
-set(CMAKE_CXX_STANDARD ${CXX_STANDARD})
+# tbd remove:set(CMAKE_CXX_STANDARD ${CXX_STANDARD})
17
18
enable_testing()
19
0 commit comments