From 080add8b8d55e643b94e4742aee1576d4b68d94b Mon Sep 17 00:00:00 2001 From: Olga Andreeva <124622579+oandreeva-nv@users.noreply.github.com> Date: Thu, 11 Jan 2024 12:03:55 -0800 Subject: [PATCH] Bumping min required cxx standard to 17 (#9) --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d761740..23862ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,9 @@ cmake_minimum_required(VERSION 3.17) project(tritonchecksumrepoagent LANGUAGES C CXX) +# 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.") + # # Options # @@ -85,7 +88,7 @@ target_include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/src ) -target_compile_features(triton-checksum-repoagent PRIVATE cxx_std_11) +target_compile_features(triton-checksum-repoagent PRIVATE cxx_std_${TRITON_MIN_CXX_STANDARD}) target_compile_options( triton-checksum-repoagent PRIVATE $<$,$,$>: