From ec85e4b24e38012d55d70fbe6dd42fb139471969 Mon Sep 17 00:00:00 2001 From: Deeptenndu Santra Date: Sun, 10 Mar 2024 19:26:02 +0530 Subject: [PATCH] Set cxx version to 17 if Kokkos is found --- unittests/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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)