Skip to content

Commit

Permalink
Merge pull request E3SM-Project#2993 from E3SM-Project/bartgol/rrtmgp…
Browse files Browse the repository at this point in the history
…-find-pkg-kokkos

Make rrtmgp explicitly find kokkos
  • Loading branch information
jgfouca authored Sep 12, 2024
2 parents 5e3f6f3 + 17aa536 commit 56e881c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/eamxx/src/physics/rrtmgp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +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
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 56e881c

Please sign in to comment.