File tree 2 files changed +23
-9
lines changed
2 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 33
33
find_package (Chaste COMPONENTS cell_based)
34
34
35
35
# PyChaste needs some additional VTK libraries
36
- if (VTK_MAJOR_VERSION LESS_EQUAL 6 )
36
+ if (VTK_MAJOR_VERSION LESS 7 )
37
37
find_package (VTK REQUIRED COMPONENTS
38
38
vtkInteractionStyle
39
39
vtkIOImage
@@ -44,24 +44,38 @@ if(VTK_MAJOR_VERSION LESS_EQUAL 6)
44
44
vtkRenderingOpenGL
45
45
vtkWrappingPythonCore
46
46
)
47
- else ( )
47
+ elseif (VTK_MAJOR_VERSION LESS 9 )
48
48
find_package (VTK REQUIRED COMPONENTS
49
- vtkFiltersProgrammable
50
- vtkFiltersVerdict
51
49
vtkInteractionStyle
52
50
vtkIOImage
53
51
vtkIOMovie
54
52
vtkRenderingAnnotation
55
53
vtkRenderingCore
56
54
vtkRenderingFreeType
57
- vtkRenderingOpenGL2
55
+ vtkRenderingOpenGL
58
56
vtkWrappingPythonCore
59
57
)
58
+ else ()
59
+ find_package (VTK REQUIRED COMPONENTS
60
+ FiltersProgrammable
61
+ FiltersVerdict
62
+ InteractionStyle
63
+ IOImage
64
+ IOMovie
65
+ RenderingAnnotation
66
+ RenderingCore
67
+ RenderingFreeType
68
+ RenderingOpenGL2
69
+ WrappingPythonCore
70
+ )
60
71
endif ()
61
72
62
- list (APPEND Chaste_INCLUDES ${VTK_INCLUDE_DIRS} )
63
- list (APPEND Chaste_project_PyChaste_INCLUDE_DIRS ${VTK_INCLUDE_DIRS} )
64
- list (APPEND Chaste_THIRD_PARTY_LIBRARIES ${VTK_LIBRARIES} )
73
+ if (VTK_MAJOR_VERSION LESS 9)
74
+ list (APPEND Chaste_INCLUDES ${VTK_INCLUDE_DIRS} )
75
+ list (APPEND Chaste_project_PyChaste_INCLUDE_DIRS ${VTK_INCLUDE_DIRS} )
76
+ list (APPEND Chaste_THIRD_PARTY_LIBRARIES ${VTK_LIBRARIES} )
77
+ endif ()
78
+
65
79
chaste_do_project(PyChaste)
66
80
67
81
# Include the Python wrapping build logic
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ foreach(val RANGE ${len2})
124
124
PREFIX "${PYTHON_MODULE_PREFIX} " SUFFIX ".so" )
125
125
target_compile_features (_chaste_project_PyChaste_${python_module} PRIVATE cxx_range_for)
126
126
# order is important, pybind and python come first
127
- target_link_libraries (_chaste_project_PyChaste_${python_module} pybind11::module ${PYTHON3_LIBRARIES} ${Chaste_THIRD_PARTY_LIBRARIES} ${Chaste_LIBRARIES} ${PYCHASTE_SHARED_LIB} )
127
+ target_link_libraries (_chaste_project_PyChaste_${python_module} pybind11::module ${PYTHON3_LIBRARIES} ${Chaste_THIRD_PARTY_LIBRARIES} ${Chaste_LIBRARIES} ${PYCHASTE_SHARED_LIB} Chaste_COMMON_DEPS )
128
128
add_dependencies (_chaste_project_PyChaste_${python_module} chaste_project_PyChaste)
129
129
endforeach ()
130
130
You can’t perform that action at this time.
0 commit comments