From 7a5e72978a61f3bd77c7e8f554b2ad568ba81cab Mon Sep 17 00:00:00 2001
From: Mark Olesen <Mark.Olesen@esi-group.com>
Date: Mon, 11 Mar 2019 11:04:18 +0100
Subject: [PATCH] COMP: runTimePostProcessing build with VTP+MPI fails (#1231)

- incorrectly uses paraview include dirs instead of the more universal
  vtk include dirs for the MPI test.
---
 .../graphics/runTimePostProcessing/CMakeLists-Project.txt       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/functionObjects/graphics/runTimePostProcessing/CMakeLists-Project.txt b/src/functionObjects/graphics/runTimePostProcessing/CMakeLists-Project.txt
index 3db266e911e..f85a2cc7929 100644
--- a/src/functionObjects/graphics/runTimePostProcessing/CMakeLists-Project.txt
+++ b/src/functionObjects/graphics/runTimePostProcessing/CMakeLists-Project.txt
@@ -27,7 +27,7 @@ file(WRITE ${test_file}
 try_compile(FOAM_USING_VTK_MPI
     ${CMAKE_CURRENT_BINARY_DIR} ${test_file}
     LINK_LIBRARIES vtkParallelMPI
-    CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${PARAVIEW_INCLUDE_DIRS}"
+    CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${VTK_INCLUDE_DIRS}"
 )
 if (FOAM_USING_VTK_MPI)
     add_definitions(-DFOAM_USING_VTK_MPI)
-- 
GitLab