File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ if(NOT CMAKE_BUILD_TYPE)
6
6
set (CMAKE_BUILD_TYPE Release)
7
7
endif ()
8
8
9
+ # both the apps and the library depend on kokkos and kokkoskernels
10
+ # find KokkosKernels also handles kokkos
11
+ find_package (KokkosKernels REQUIRED)
9
12
add_compile_options (-Wall -Wextra -Wshadow)
10
13
add_subdirectory (src)
11
14
add_subdirectory (app)
Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ target_compile_definitions(jet_export PUBLIC HOST EXP)
25
25
target_compile_definitions (jet_serial PUBLIC SERIAL)
26
26
27
27
# link executables
28
- find_package (KokkosKernels REQUIRED)
29
28
target_link_libraries (jet_import Kokkos::kokkos Kokkos::kokkoskernels)
30
29
target_link_libraries (pstat Kokkos::kokkos Kokkos::kokkoskernels)
30
+ # other executables get the kokkos dependencies via jet
31
31
foreach (prog jet_ex jet4 jet2 jet_host jet_export jet_serial)
32
32
target_link_libraries (${prog} jet)
33
33
endforeach (prog)
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ endif()
26
26
27
27
# link libjet (for downstream library consumers)
28
28
# no linking actually occurs for libjet itself
29
- find_package (KokkosKernels REQUIRED)
30
29
target_link_libraries (jet PUBLIC Kokkos::kokkos Kokkos::kokkoskernels)
31
30
target_link_libraries (jet PRIVATE ${LIBMETIS} )
32
31
if (LINK_GKLIB)
You can’t perform that action at this time.
0 commit comments