| 1 | The VTK_MAJOR_VERSION macro is not available by default in newer versions. |
| 2 | This is a hack to expose it without changing all imports. |
| 3 | |
| 4 | diff --git a/addons/vtk/CMakeLists.txt b/addons/vtk/CMakeLists.txt |
| 5 | |
| 6 | |
| 7 | IF(WITH_VTKIO) |
| 8 | ELSE() |
| 9 | SET(SELECTED_VTK_LIBS ${VTK_MODULES_REQUESTED}) |
| 10 | ENDIF() |
| 11 | + |
| 12 | + add_compile_definitions(VTK_MAJOR_VERSION=${VTK_VERSION_MAJOR}) |
| 13 | |
| 14 | SET(VTK_LINK_LIBS_MESH ${SELECTED_VTK_LIBS} miamesh) |
| 15 | SET(VTK_LINK_LIBS_3D ${SELECTED_VTK_LIBS} mia3d) |