summaryrefslogtreecommitdiff
path: root/sci-libs/opencascade/files/opencascade-7.8.1-vtk_components.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/opencascade/files/opencascade-7.8.1-vtk_components.patch')
-rw-r--r--sci-libs/opencascade/files/opencascade-7.8.1-vtk_components.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/sci-libs/opencascade/files/opencascade-7.8.1-vtk_components.patch b/sci-libs/opencascade/files/opencascade-7.8.1-vtk_components.patch
new file mode 100644
index 000000000000..03a6277c6fa8
--- /dev/null
+++ b/sci-libs/opencascade/files/opencascade-7.8.1-vtk_components.patch
@@ -0,0 +1,24 @@
+diff --git a/adm/cmake/vtk.cmake b/adm/cmake/vtk.cmake
+index 7d25a37..79257d1 100644
+--- a/adm/cmake/vtk.cmake
++++ b/adm/cmake/vtk.cmake
+@@ -60,7 +60,18 @@ if (3RDPARTY_VTK_DIR AND EXISTS "${3RDPARTY_VTK_DIR}")
+ set (ENV{VTK_DIR} "${3RDPARTY_VTK_DIR}")
+ endif()
+
+-find_package(VTK QUIET)
++find_package(VTK
++ COMPONENTS
++ CommonCore
++ FiltersGeneral
++ IOImage
++ ImagingCore
++ InteractionStyle
++ RenderingCore
++ RenderingFreeType
++ RenderingGL2PSOpenGL2
++ RenderingOpenGL2
++)
+
+ if (3RDPARTY_VTK_DIR AND EXISTS "${3RDPARTY_VTK_DIR}")
+ set (ENV{VTK_DIR} ${CACHED_VTK_DIR})