Skip to content

Commit 1ef550b

Browse files
authored
Bump min cxx standard to 17 (#110)
1 parent 00a4288 commit 1ef550b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ cmake_minimum_required(VERSION 3.17)
2828

2929
project(tritoncommon LANGUAGES C CXX)
3030

31+
#
32+
# C++ standard
33+
#
34+
set(TRITON_MIN_CXX_STANDARD 17 CACHE STRING "The minimum C++ standard whose features are requested to build this target.")
35+
3136
#
3237
# Options
3338
#
@@ -55,7 +60,7 @@ endif()
5560

5661
add_library(common-compile-settings INTERFACE)
5762

58-
target_compile_features(common-compile-settings INTERFACE cxx_std_11)
63+
target_compile_features(common-compile-settings INTERFACE cxx_std_${TRITON_MIN_CXX_STANDARD})
5964

6065
target_compile_options(common-compile-settings INTERFACE
6166
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:

0 commit comments

Comments
 (0)