projects/guix·blob javascript-team · refs

15 lines · 566 B

1The VTK_MAJOR_VERSION macro is not available by default in newer versions.
2This is a hack to expose it without changing all imports.
3
4diff --git a/addons/vtk/CMakeLists.txt b/addons/vtk/CMakeLists.txt
5--- a/addons/vtk/CMakeLists.txt
6+++ b/addons/vtk/CMakeLists.txt
7@@ -36,6 +36,8 @@ 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)