From 6817662455c97edf1a6cd11b999a8d6534a7d831 Mon Sep 17 00:00:00 2001 From: Olga Andreeva <124622579+oandreeva-nv@users.noreply.github.com> Date: Thu, 11 Jan 2024 12:00:33 -0800 Subject: [PATCH] Bumping min required cxx standard to 17 (#230) --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4130a3f..a6af614 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,6 +109,9 @@ set(TRITON_BACKEND_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server set(TRITON_CORE_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/core repo") set(TRITON_COMMON_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/common repo") +# Use C++17 standard as Triton's minimum required. +set(TRITON_MIN_CXX_STANDARD 17 CACHE STRING "The minimum C++ standard which features are requested to build this target.") + if (WIN32) if(TRITON_ENABLE_ONNXRUNTIME_OPENVINO) message(FATAL_ERROR @@ -226,7 +229,7 @@ target_include_directories( ${TRITON_ONNXRUNTIME_INCLUDE_PATHS} ) -target_compile_features(triton-onnxruntime-backend PRIVATE cxx_std_11) +target_compile_features(triton-onnxruntime-backend PRIVATE cxx_std_${TRITON_MIN_CXX_STANDARD}) target_compile_options( triton-onnxruntime-backend PRIVATE $<$,$,$>: