From ff1e7b23a99acefcdaf2fe16d897aa6a70354285 Mon Sep 17 00:00:00 2001 From: Tatsuya Sakashita Date: Fri, 29 Nov 2024 16:03:41 +0900 Subject: [PATCH] Replace ${MPI_CXX_LIBRARIES} by MPI::MPI_CXX --- rokko/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rokko/CMakeLists.txt b/rokko/CMakeLists.txt index acdcd9b5..d47e82b6 100644 --- a/rokko/CMakeLists.txt +++ b/rokko/CMakeLists.txt @@ -125,9 +125,9 @@ if(ROKKO_SOURCES) if(ROKKO_HAVE_MPI) if(BUILD_Fortran_BINDING) - target_link_libraries(rokko ${MPI_Fortran_LIBRARIES}) + target_link_libraries(rokko MPI::MPI_Fortran) endif(BUILD_Fortran_BINDING) - target_link_libraries(rokko ${MPI_CXX_LIBRARIES}) + target_link_libraries(rokko MPI::MPI_CXX) endif(ROKKO_HAVE_MPI) if(ROKKO_HAVE_SCALAPACK)