From 10d9d4caa1f939d67ba18f9878c15626f238cdd3 Mon Sep 17 00:00:00 2001 From: oandreeva-nv Date: Wed, 20 Dec 2023 10:41:13 -0800 Subject: [PATCH] Clean up --- CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 89e9fa5..4182bb5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,12 +32,6 @@ project(tritoncommon LANGUAGES C CXX) # C++ standard set(TRITON_MIN_CXX_STANDARD 17 CACHE STRING "The minimum C++ standard whose features are requested to build this target.") -if (NOT DEFINED CMAKE_CXX_STANDARD OR CMAKE_CXX_STANDARD LESS ${TRITON_MIN_CXX_STANDARD}) - set(COMMON_CMAKE_CXX_STANDARD ${TRITON_MIN_CXX_STANDARD}) -else() - set(COMMON_CMAKE_CXX_STANDARD ${CMAKE_CXX_STANDARD}) -endif() - # # Options # @@ -65,7 +59,7 @@ endif() add_library(common-compile-settings INTERFACE) -target_compile_features(common-compile-settings INTERFACE cxx_std_${COMMON_CMAKE_CXX_STANDARD}) +target_compile_features(common-compile-settings INTERFACE cxx_std_${TRITON_MIN_CXX_STANDARD}) target_compile_options(common-compile-settings INTERFACE $<$,$,$>: