From 38919ddbc19c4f6186e40b1337d18dac45bb3130 Mon Sep 17 00:00:00 2001 From: "Daniel R. Reynolds" Date: Tue, 13 Feb 2024 13:51:27 -0600 Subject: [PATCH] Updated F2003_parallel/CMakeLists.txt files to explicitly specify linking against MPI::MPI_Fortran --- examples/arkode/F2003_parallel/CMakeLists.txt | 2 +- examples/cvode/F2003_parallel/CMakeLists.txt | 2 +- examples/ida/F2003_parallel/CMakeLists.txt | 2 +- examples/kinsol/F2003_parallel/CMakeLists.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/arkode/F2003_parallel/CMakeLists.txt b/examples/arkode/F2003_parallel/CMakeLists.txt index 32f6e433a0..d1084b5af3 100644 --- a/examples/arkode/F2003_parallel/CMakeLists.txt +++ b/examples/arkode/F2003_parallel/CMakeLists.txt @@ -55,7 +55,7 @@ foreach(example_tuple ${FARKODE_examples}) add_executable(${example} ${example}.f90) # libraries to link against - target_link_libraries(${example} ${SUNDIALS_LIBS}) + target_link_libraries(${example} MPI::MPI_Fortran ${SUNDIALS_LIBS}) set_target_properties(${example} PROPERTIES FOLDER "Examples") endif() diff --git a/examples/cvode/F2003_parallel/CMakeLists.txt b/examples/cvode/F2003_parallel/CMakeLists.txt index d25132cbf6..c2b894d375 100644 --- a/examples/cvode/F2003_parallel/CMakeLists.txt +++ b/examples/cvode/F2003_parallel/CMakeLists.txt @@ -53,7 +53,7 @@ foreach(example_tuple ${FCVODE_examples}) add_executable(${example} ${example}.f90) # libraries to link against - target_link_libraries(${example} ${SUNDIALS_LIBS}) + target_link_libraries(${example} MPI::MPI_Fortran ${SUNDIALS_LIBS}) set_target_properties(${example} PROPERTIES FOLDER "Examples") endif() diff --git a/examples/ida/F2003_parallel/CMakeLists.txt b/examples/ida/F2003_parallel/CMakeLists.txt index 681207f6ce..908a89cc9b 100644 --- a/examples/ida/F2003_parallel/CMakeLists.txt +++ b/examples/ida/F2003_parallel/CMakeLists.txt @@ -52,7 +52,7 @@ foreach(example_tuple ${FIDA_examples}) add_executable(${example} ${example}.f90) # libraries to link against - target_link_libraries(${example} ${SUNDIALS_LIBS}) + target_link_libraries(${example} MPI::MPI_Fortran ${SUNDIALS_LIBS}) set_target_properties(${example} PROPERTIES FOLDER "Examples") endif() diff --git a/examples/kinsol/F2003_parallel/CMakeLists.txt b/examples/kinsol/F2003_parallel/CMakeLists.txt index eedf035bda..8ba5706a32 100644 --- a/examples/kinsol/F2003_parallel/CMakeLists.txt +++ b/examples/kinsol/F2003_parallel/CMakeLists.txt @@ -51,7 +51,7 @@ foreach(example_tuple ${FKINSOL_examples}) add_executable(${example} ${example}.f90) # libraries to link against - target_link_libraries(${example} ${SUNDIALS_LIBS}) + target_link_libraries(${example} MPI::MPI_Fortran ${SUNDIALS_LIBS}) set_target_properties(${example} PROPERTIES FOLDER "Examples") endif()