summaryrefslogtreecommitdiff
path: root/sci-libs/opencascade/files/opencascade-7.8.1-vtk_components.patch
blob: 5e7d5588c44718d2426c3d00f005bd31975c7d07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From b473d89e3c87aeae13e9fe9e0b8ef3a287161235 Mon Sep 17 00:00:00 2001
From: Paul Zander <negril.nx@gmail.com>
Date: Tue, 20 May 2025 14:13:14 +0200
Subject: [PATCH] vtk components

Only include the components we actually use.
This prevents a circular loop occt -> vtk -> occt.

diff --git a/adm/cmake/vtk.cmake b/adm/cmake/vtk.cmake
index 48650fe7d..6c168bf59 100644
--- a/adm/cmake/vtk.cmake
+++ b/adm/cmake/vtk.cmake
@@ -74,7 +74,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})
-- 
2.49.0