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 00a4288 commit 1ef550bCopy full SHA for 1ef550b
CMakeLists.txt
@@ -28,6 +28,11 @@ cmake_minimum_required(VERSION 3.17)
28
29
project(tritoncommon LANGUAGES C CXX)
30
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
+
36
#
37
# Options
38
@@ -55,7 +60,7 @@ endif()
55
60
56
61
add_library(common-compile-settings INTERFACE)
57
62
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})
59
64
65
target_compile_options(common-compile-settings INTERFACE
66
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:
0 commit comments