From 2f870b56b9266eeef1464d1faa037f849924985b Mon Sep 17 00:00:00 2001
From: Chuck Atkins <chuck.atkins@kitware.com>
Date: Tue, 12 Sep 2017 09:02:46 -0400
Subject: [PATCH] CMake: Port libadios2 to use the new FindMPI module

---
 source/adios2/CMakeLists.txt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/source/adios2/CMakeLists.txt b/source/adios2/CMakeLists.txt
index 24c36ffe8..b49a1dec2 100644
--- a/source/adios2/CMakeLists.txt
+++ b/source/adios2/CMakeLists.txt
@@ -85,8 +85,7 @@ if(ADIOS2_HAVE_ZFP)
 endif()
 
 if(ADIOS2_HAVE_MPI)
-  target_include_directories(adios2 PUBLIC ${MPI_C_INCLUDE_PATH})
-  target_link_libraries(adios2 PUBLIC ${MPI_C_LIBRARIES})
+  target_link_libraries(adios2 PUBLIC MPI::MPI_C)
 else()
   target_sources(adios2 PRIVATE mpidummy.cpp)
 endif()
-- 
GitLab