Skip to content

Commit

Permalink
Update to C++17 for torch>=2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Luthaf committed Oct 6, 2023
1 parent d9c032b commit f07879a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rascaline-c-api/tests/catch/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion rascaline-torch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
Expand Down

0 comments on commit f07879a

Please sign in to comment.