diff --git a/cmake/parameters.cmake b/cmake/parameters.cmake index a71d2ff..83bbb3f 100644 --- a/cmake/parameters.cmake +++ b/cmake/parameters.cmake @@ -15,5 +15,5 @@ SET_IF_EMPTY(MYPATH "") SET_IF_EMPTY(MPI_OPTION "NOT_MPI_PARALLEL") if(MPI_OPTION STREQUAL "MPI_PARALLEL") - find_package(MPI REQUIRED) + find_package(MPI COMPONENTS CXX REQUIRED) endif()