Skip to content

Commit

Permalink
Do not require CXX libraries for MPI which are deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
maikel committed May 2, 2019
1 parent 867bd8f commit c98d66c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.14)
project(AMReX)
enable_language(C) # needed for find_package(MPI REQUIRED "C")
enable_language(CXX)
enable_language(Fortran)

Expand Down
2 changes: 1 addition & 1 deletion Tools/CMake/AMReXConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ set(AMREX_ENABLE_HYPRE @ENABLE_HYPRE@)
# Find dependencies if needed
#
if (AMREX_ENABLE_MPI)
set( _mpi_components CXX )
set( _mpi_components "C" )
if (AMREX_ENABLE_FORTRAN_INTERFACES)
set( _mpi_components "${_mpi_components} Fortran" )
endif ()
Expand Down

0 comments on commit c98d66c

Please sign in to comment.