Skip to content

Commit

Permalink
cmake: add mpi detour to root listfile and link in forcing library
Browse files Browse the repository at this point in the history
  • Loading branch information
program-- committed Mar 15, 2024
1 parent 9821ac4 commit 2861184
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ add_subdirectory("src/forcing")
add_subdirectory("src/utilities/mdarray")
add_subdirectory("src/utilities/mdframe")
add_subdirectory("src/utilities/logging")
add_subdirectory("src/utilities/mpi")

target_link_libraries(ngen
PUBLIC
Expand Down
4 changes: 4 additions & 0 deletions src/forcing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ if(NGEN_WITH_NETCDF)
target_link_libraries(forcing PUBLIC NetCDF)
endif()

if(NGEN_WITH_MPI)
target_link_libraries(forcing PUBLIC MPIDetour)
endif()

#target_compile_options(forcing PUBLIC -std=c++14 -Wall)

0 comments on commit 2861184

Please sign in to comment.