From 1421a66d98877733af3c61b0060b061493e3892f Mon Sep 17 00:00:00 2001
From: Chuck Atkins <chuck.atkins@kitware.com>
Date: Thu, 30 Mar 2017 17:40:10 -0400
Subject: [PATCH] Fix bad include specification

---
 examples/hello/bpWriter/CMakeLists.txt | 2 +-
 examples/hello/timeBP/CMakeLists.txt   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/hello/bpWriter/CMakeLists.txt b/examples/hello/bpWriter/CMakeLists.txt
index ffd7d017b..3518b4278 100644
--- a/examples/hello/bpWriter/CMakeLists.txt
+++ b/examples/hello/bpWriter/CMakeLists.txt
@@ -6,7 +6,7 @@
 if(ADIOS_USE_MPI)
   find_package(MPI COMPONENTS C REQUIRED)
   add_executable(hello_bpWriter helloBPWriter.cpp)
-  target_include_directories(hello_bpWriter ${MPI_C_INCLUDE_PATH})
+  target_include_directories(hello_bpWriter PRIVATE ${MPI_C_INCLUDE_PATH})
   target_link_libraries(hello_bpWriter adios2 ${MPI_C_LIBRARIES})
 endif()
 
diff --git a/examples/hello/timeBP/CMakeLists.txt b/examples/hello/timeBP/CMakeLists.txt
index 7a859cd13..a0e382825 100644
--- a/examples/hello/timeBP/CMakeLists.txt
+++ b/examples/hello/timeBP/CMakeLists.txt
@@ -7,7 +7,7 @@ if(ADIOS_USE_MPI)
   find_package(MPI COMPONENTS C REQUIRED)
   add_executable(hello_timeBPWriter timeBPWriter.cpp)
   target_link_libraries(hello_timeBPWriter adios2)
-  target_include_directories(hello_timeBPWriter ${MPI_C_INCLUDE_PATH})
+  target_include_directories(hello_timeBPWriter PRIVATE ${MPI_C_INCLUDE_PATH})
   target_link_libraries(hello_timeBPWriter adios2 ${MPI_C_LIBRARIES})
 endif()
 
-- 
GitLab