summaryrefslogtreecommitdiffstats
path: root/graphics/OpenCASCADE/fix-flow-control-nesting.patch
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/OpenCASCADE/fix-flow-control-nesting.patch')
-rw-r--r--graphics/OpenCASCADE/fix-flow-control-nesting.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/graphics/OpenCASCADE/fix-flow-control-nesting.patch b/graphics/OpenCASCADE/fix-flow-control-nesting.patch
new file mode 100644
index 0000000000..7e2bb1d7b2
--- /dev/null
+++ b/graphics/OpenCASCADE/fix-flow-control-nesting.patch
@@ -0,0 +1,31 @@
+From e69c42386239bcc08143607df12b8bb3f1ff14ba Mon Sep 17 00:00:00 2001
+From: Bernd Waibel <waebbl-gentoo@posteo.net>
+Date: Wed, 24 Feb 2021 20:06:02 +0100
+Subject: [PATCH] adm/cmake/vtk.cmake: fix flow control nesting
+
+Fix an unbalanced nesting of flow control statements
+for >=cmake-3.20.0
+
+Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
+---
+ adm/cmake/vtk.cmake | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/adm/cmake/vtk.cmake b/adm/cmake/vtk.cmake
+index c5692fd6..00b7ff4a 100644
+--- a/adm/cmake/vtk.cmake
++++ b/adm/cmake/vtk.cmake
+@@ -156,8 +156,8 @@ if (VTK_FOUND)
+ endif()
+ endif()
+ endif()
+- endif()
+- endforeach()
++ endforeach()
++ endif()
+ endif()
+
+ if (3RDPARTY_VTK_INCLUDE_DIRS)
+--
+2.30.1
+