From 3ec334355558cab1fc5f57e631fbb221c5759e14 Mon Sep 17 00:00:00 2001 From: Gabriele Merlo Date: Thu, 13 Nov 2025 10:42:53 +0100 Subject: [PATCH] use C++ std17 always needed for rocm/7, so use always --- CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9373ca3e..3ce6222c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,13 +139,7 @@ macro(add_gtensor_library DEVICE) $ $ ) - if ("${GTENSOR_DEVICE}" STREQUAL "sycl") - # Note: SYCL 2020 standard requires C++17, and gtensor takes advantage of this - # in some SYCL backend specific code - target_compile_features(gtensor_${DEVICE} INTERFACE cxx_std_17) - else() - target_compile_features(gtensor_${DEVICE} INTERFACE cxx_std_14) - endif() + target_compile_features(gtensor_${DEVICE} INTERFACE cxx_std_17) list(APPEND GTENSOR_TARGETS gtensor_${DEVICE})