diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index 054f42630..6100f7346 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -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)