From eab4ace8208411f222a4b5cd743c15e71c9cc3cf Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Mon, 4 Dec 2017 12:33:57 +0000 Subject: [PATCH] ParaViewFunctions: Remove warning message in ParaView when built with OpenGL back-end Patch contributed by Bruno Santos Resolves patch request https://bugs.openfoam.org/view.php?id=2779 --- etc/tools/ParaViewFunctions | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/tools/ParaViewFunctions b/etc/tools/ParaViewFunctions index 3f5ceea0..da0585f1 100644 --- a/etc/tools/ParaViewFunctions +++ b/etc/tools/ParaViewFunctions @@ -413,7 +413,12 @@ configRenderingBackend() # Choose the rendering engine if [ -n "${RENDERING_BACKEND}" ] then - addCMakeVariable "VTK_RENDERING_BACKEND=$RENDERING_BACKEND" + addCMakeVariable "VTK_RENDERING_BACKEND=${RENDERING_BACKEND}" + + if [ "${RENDERING_BACKEND}" = "OpenGL" ] + then + addCMakeVariable "VTK_LEGACY_SILENT=ON" + fi else usage "*** Error: No rendering backend is defined" fi