Skip to content
Draft
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ The Axom project release numbers follow [Semantic Versioning](http://semver.org/
- Primal: Axom's polygon clipping was modified to handle some corner cases.

### Fixed
- MPI setup in exported Axom config only requires Fortran when Axom's MPI was set up with Fortran.
This is in support of configs that require Fortran and MPI, but not an MPI wrapper for Fortran.

### Removed

Expand Down
7 changes: 7 additions & 0 deletions src/cmake/AxomConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ if(AXOM_ENABLE_MPI AND ENABLE_FORTRAN)
endif()
endif()

if(AXOM_ENABLE_MPI)
set(AXOM_REQUIRED_MPI_COMPONENTS C CXX)
if(ENABLE_FORTRAN AND MPI_Fortran_COMPILER)
list(APPEND AXOM_REQUIRED_MPI_COMPONENTS Fortran)
endif()
endif()


## Add a configuration define for each enabled axom component
foreach(comp ${AXOM_COMPONENTS_ENABLED})
Expand Down
2 changes: 1 addition & 1 deletion src/cmake/axom-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ if(NOT AXOM_FOUND)

# Load mpi targets because we require the optional Conduit mpi targets
if(AXOM_USE_MPI)
find_package(MPI REQUIRED)
find_package(MPI REQUIRED COMPONENTS @AXOM_REQUIRED_MPI_COMPONENTS@)
endif()

find_dependency(Conduit REQUIRED
Expand Down
2 changes: 1 addition & 1 deletion src/cmake/blt