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 @@ -28,6 +28,9 @@ cmake_minimum_required(VERSION 3.17)
2828
2929project (tritontensorflowbackend LANGUAGES C CXX)
3030
31+ # Use C++17 standard as Triton's minimum required.
32+ set (TRITON_MIN_CXX_STANDARD 17 CACHE STRING "The minimum C++ standard which features are requested to build this target." )
33+
3134#
3235# Options
3336#
@@ -193,7 +196,7 @@ if (NOT ${TRITON_TENSORFLOW_DOCKER_BUILD})
193196 )
194197endif () # !TRITON_TENSORFLOW_DOCKER_BUILD
195198
196- target_compile_features (triton-tensorflow-backend PRIVATE cxx_std_11 )
199+ target_compile_features (triton-tensorflow-backend PRIVATE cxx_std_ ${TRITON_MIN_CXX_STANDARD} )
197200target_compile_options (
198201 triton-tensorflow-backend PRIVATE
199202 $<$<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