Skip to content

Commit

Permalink
Set cxx version to 17 if Kokkos is found
Browse files Browse the repository at this point in the history
  • Loading branch information
Dsantra92 committed Mar 10, 2024
1 parent e930a4a commit ec85e4b
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 ec85e4b

Please sign in to comment.