File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ set(CMAKE_C_EXTENSIONS OFF)
2424set (CMAKE_Fortran_STANDARD 2018)
2525set (CMAKE_Fortran_STANDARD_REQUIRED ON )
2626
27- find_package (MPI REQUIRED)
27+ find_package (MPI REQUIRED COMPONENTS C )
2828set (SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /source" )
2929
3030# Create the static library
@@ -54,7 +54,7 @@ message(STATUS "Final MPI Vendor Flag: ${FLAG_MPI}")
5454
5555target_compile_options (${vapa_lib} PRIVATE -Wall -Wextra -fPIE)
5656target_compile_definitions (${vapa_lib} PRIVATE -DHAVE_CFI ${FLAG_MPI} )
57- target_link_libraries (${vapa_lib} PRIVATE MPI::MPI_Fortran MPI:: MPI_C)
57+ target_link_libraries (${vapa_lib} PRIVATE MPI::MPI_C)
5858
5959# Set the library output and module directories
6060set_target_properties (
You can’t perform that action at this time.
0 commit comments