From f07879a96c97a14244167f692b615b8b673bd540 Mon Sep 17 00:00:00 2001 From: Guillaume Fraux Date: Fri, 6 Oct 2023 10:41:51 +0200 Subject: [PATCH] Update to C++17 for torch>=2.1 --- rascaline-c-api/tests/catch/CMakeLists.txt | 2 +- rascaline-torch/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rascaline-c-api/tests/catch/CMakeLists.txt b/rascaline-c-api/tests/catch/CMakeLists.txt index 4c6184820..c783b584e 100644 --- a/rascaline-c-api/tests/catch/CMakeLists.txt +++ b/rascaline-c-api/tests/catch/CMakeLists.txt @@ -1,3 +1,3 @@ add_library(catch STATIC catch.cpp) target_include_directories(catch PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) -target_compile_features(catch PUBLIC cxx_std_11) +target_compile_features(catch PUBLIC cxx_std_17) diff --git a/rascaline-torch/CMakeLists.txt b/rascaline-torch/CMakeLists.txt index 156c727f2..f1f343809 100644 --- a/rascaline-torch/CMakeLists.txt +++ b/rascaline-torch/CMakeLists.txt @@ -106,7 +106,7 @@ add_library(rascaline_torch SHARED ) target_link_libraries(rascaline_torch PUBLIC torch metatensor_torch rascaline) -target_compile_features(rascaline_torch PUBLIC cxx_std_14) +target_compile_features(rascaline_torch PUBLIC cxx_std_17) target_include_directories(rascaline_torch PUBLIC $ $