Skip to content

Commit

Permalink
build: added missing MPI dependency to the coupldyn_fromfile lib
Browse files Browse the repository at this point in the history
  • Loading branch information
wiltonloch committed Aug 26, 2024
1 parent b737809 commit e7c2604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/coupldyn_fromfile/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ add_library("${LIBNAME}" STATIC ${SOURCES})

# Add directories for target library
#target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(${LIBNAME} PRIVATE "${CLEO_SOURCE_DIR}/libs") # CLEO libs directory
target_include_directories(${LIBNAME} PRIVATE "${CLEO_SOURCE_DIR}/libs" ${MPI_INCLUDE_PATH}) # CLEO libs directory

# Link libraries to target library
set(LINKLIBS initialise gridboxes superdrops)
target_link_libraries("${LIBNAME}" PUBLIC ${LINKLIBS})
target_link_libraries("${LIBNAME}" PUBLIC ${LINKLIBS} MPI::MPI_CXX)

# set specific C++ compiler options for target (optional)
#target_compile_options(${LIBNAME} PRIVATE)
Expand Down

0 comments on commit e7c2604

Please sign in to comment.