Skip to content

Commit

Permalink
Set cxx version to 17 if Kokkos is found (#817)
Browse files Browse the repository at this point in the history
Fixes #798.
  • Loading branch information
Dsantra92 authored Apr 13, 2024
1 parent 4f8292c commit c3202c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ add_subdirectory(Basic)

find_package(Kokkos)
if (Kokkos_FOUND)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
add_subdirectory(Kokkos)
endif(Kokkos_FOUND)

0 comments on commit c3202c1

Please sign in to comment.