Skip to content

Commit

Permalink
EAMxx: look for kokkos pkg only if it's not a target
Browse files Browse the repository at this point in the history
  • Loading branch information
bartgol committed Sep 11, 2024
1 parent f080044 commit 17aa536
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/eamxx/src/physics/rrtmgp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ yakl_process_target(rrtmgp)
# NOTE: cannot use 'PUBLIC' in target_link_libraries,
# since yakl_process_target already used it
# with the "plain" signature
find_package(Kokkos REQUIRED)
if (NOT TARGET Kokkos::kokkos)
find_package(Kokkos REQUIRED)
endif ()
target_link_libraries(rrtmgp yakl Kokkos::kokkos)
target_include_directories(rrtmgp PUBLIC
${SCREAM_BASE_DIR}/../../externals/YAKL
Expand Down

0 comments on commit 17aa536

Please sign in to comment.