File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ set(TRITON_BACKEND_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server
109109set (TRITON_CORE_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/core repo" )
110110set (TRITON_COMMON_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/common repo" )
111111
112+ # Use C++17 standard as Triton's minimum required.
113+ set (TRITON_MIN_CXX_STANDARD 17 CACHE STRING "The minimum C++ standard which features are requested to build this target." )
114+
112115if (WIN32 )
113116 if (TRITON_ENABLE_ONNXRUNTIME_OPENVINO)
114117 message (FATAL_ERROR
@@ -226,7 +229,7 @@ target_include_directories(
226229 ${TRITON_ONNXRUNTIME_INCLUDE_PATHS}
227230)
228231
229- target_compile_features (triton-onnxruntime-backend PRIVATE cxx_std_11 )
232+ target_compile_features (triton-onnxruntime-backend PRIVATE cxx_std_ ${TRITON_MIN_CXX_STANDARD} )
230233target_compile_options (
231234 triton-onnxruntime-backend PRIVATE
232235 $<$<OR :$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:
You can’t perform that action at this time.
0 commit comments