From b49d7c2a694e6aa22b25728f91f5f755ee8ba60c Mon Sep 17 00:00:00 2001 From: "Roscoe A. Bartlett" Date: Tue, 20 Dec 2022 18:23:18 -0700 Subject: [PATCH] KokkosKernels: Use KOKKOSKERNELS_INCLUDE_DIRECTORIES() (TriBITSPub/TriBITS#429) This replaces the usage of raw include_directories() with the wrapper KOKKOSKERNELS_INCLUDE_DIRECTORIES(). The deprecated TriBITS macro include_directories() now issues a CMake Deprecation warning. The fix is to use tribits_include_directories() in a TriBITS build instead. This is the same patch made in Trilinos PR trilinos/Trilinos#11380. --- perf_test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perf_test/CMakeLists.txt b/perf_test/CMakeLists.txt index b73fc47adf..4b544950fe 100644 --- a/perf_test/CMakeLists.txt +++ b/perf_test/CMakeLists.txt @@ -26,7 +26,7 @@ if (KokkosKernels_ENABLE_PERFTESTS) #Gtest minimally requires C++ 11 TARGET_COMPILE_FEATURES(kokkoskernelsperf_gtest PUBLIC cxx_std_11) - include_directories(sparse) + KOKKOSKERNELS_INCLUDE_DIRECTORIES(sparse) if(Kokkos_ENABLE_TESTS_AND_PERFSUITE) #Add RPS implementations of KK perf tests here