Skip to content

Commit 56e881c

Browse files
authored
Merge pull request #2993 from E3SM-Project/bartgol/rrtmgp-find-pkg-kokkos
Make rrtmgp explicitly find kokkos
2 parents 5e3f6f3 + 17aa536 commit 56e881c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/eamxx/src/physics/rrtmgp/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ yakl_process_target(rrtmgp)
127127
# NOTE: cannot use 'PUBLIC' in target_link_libraries,
128128
# since yakl_process_target already used it
129129
# with the "plain" signature
130+
if (NOT TARGET Kokkos::kokkos)
131+
find_package(Kokkos REQUIRED)
132+
endif ()
130133
target_link_libraries(rrtmgp yakl Kokkos::kokkos)
131134
target_include_directories(rrtmgp PUBLIC
132135
${SCREAM_BASE_DIR}/../../externals/YAKL

0 commit comments

Comments
 (0)