Skip to content

Commit

Permalink
Fixes for moab
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed Oct 5, 2023
1 parent d755958 commit 12dd046
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ endif()
project(E3SM C CXX Fortran)

if (COMP_INTERFACE STREQUAL "moab")
set(USE_MOAB True)
set(CPPDEFS "${CPPDEFS} -DHAVE_MOAB")
endif()

Expand Down
5 changes: 5 additions & 0 deletions components/cmake/build_model.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ function(build_model COMP_CLASS COMP_NAME)
add_library(${TARGET_NAME})
target_sources(${TARGET_NAME} PRIVATE ${REAL_SOURCES})
target_link_libraries(${TARGET_NAME} PRIVATE csm_share)
if (USE_MOAB)
target_link_libraries(${TARGET_NAME} PRIVATE ${MOAB_LIBRARIES})
target_include_directories(${TARGET_NAME} PRIVATE ${MOAB_INCLUDE_DIRS})
message("JGF adding include directorries ${MOAB_INCLUDE_DIRS}")
endif()
if (COMP_NAME STREQUAL "eam")
if (USE_YAKL)
target_link_libraries(${TARGET_NAME} PRIVATE yakl)
Expand Down

0 comments on commit 12dd046

Please sign in to comment.