From c98d66c8248ebef820820793fcfec6c9192f1d05 Mon Sep 17 00:00:00 2001 From: Maikel Nadolski Date: Thu, 2 May 2019 17:58:33 +0200 Subject: [PATCH] Do not require CXX libraries for MPI which are deprecated. --- CMakeLists.txt | 1 + Tools/CMake/AMReXConfig.cmake.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a3cc9285f..cc9636ce29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/Tools/CMake/AMReXConfig.cmake.in b/Tools/CMake/AMReXConfig.cmake.in index 65fdda628f..cf392a36d6 100644 --- a/Tools/CMake/AMReXConfig.cmake.in +++ b/Tools/CMake/AMReXConfig.cmake.in @@ -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 ()