4 This file is used by CMake when finding VTK. It provides the [VTK module
5 API][] as well as some VTK-specific APIs.
7 The following variables are provided by
this module:
13 * `VTK_AVAILABLE_COMPONENTS`: Components available with VTK.
14 * `VTK_PREFIX_PATH`: Install prefix
for VTK.
15 * `VTK_HAS_VTKm: [Deprecated, use VTK_HAS_VISKORES] If VTK provides VTK-m.
16 * `VTK_HAS_VISKORES`: If VTK provides Viskores.
18 * `VTK_OPENGL_USE_GLES`: If VTK uses GLES.
20 * `VTK_USE_COCOA`: If VTK uses Cocoa (only present on APPLE systems).
21 * `VTK_PYTHON_VERSION`: The major
version of Python used by VTK. Empty
if 22 Python support is not available.
23 * `VTK_WRAP_PYTHON`: If VTK itself provides Python wrapping. If so, the
24 Python parts of the module API are available.
25 * `VTK_WRAP_JAVA`: If VTK itself provides Java wrapping. If so, the
26 Java parts of the module API are available.
27 * `VTK_WRAP_SERIALIZATION`: If VTK itself provides serialization wrappings
28 for marshallable classes in modules with `INCLUDE_MARSHAL`.
29 * `VTK_PYTHONPATH`: Where VTK
's Python modules live inside the install 30 prefix. Unset if Python is not available. 31 * `VTK_LIBRARIES`: The list of modules specified by `COMPONENTS` and 32 `OPTIONAL_COMPONENTS`. However, if no components are specified, all 33 available components are added to this variable. This may be used in 34 `MODULES` arguments in the API (e.g., `vtk_module_autoinit`). All modules 35 are also targets and may be linked to using `target_link_libraries`. 36 * `VTK_AUTOINIT_INCLUDE`: The header to include for access to VTK's autoinit
38 * `VTK_QT_VERSION`: The major
version of Qt used by VTK
if Qt support
enabled.
39 * `VTK_QML_DIR`: Where VTK
's QML plugins live if QML support is enabled. 40 * `VTK_ENABLE_VR_COLLABORATION`: Is VR collaboration enabled when VR is enabled. 41 * `VTK_SMP_BACKENDS`: The list of available SMP backends. 43 For more information about the Python in use by VTK, (note that the `Python` 44 component must be found to guarantee that this happens), see the 45 [FindPython3][] documentation for what is available. Of particular use are 48 - the `Python3_VERSION` variable; and 49 - the `Python3::Python` target. 51 [FindPython3]: https://cmake.org/cmake/help/v3.13/module/FindPython3.html 52 [VTK module API]: TODO: Link to hosted documentation. 55 if (CMAKE_VERSION VERSION_LESS "3.13") 56 set("${CMAKE_FIND_PACKAGE_NAME}_FOUND" 0) 57 set("${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE" 58 "VTK requires CMake 3.13 in order to reliably be used.") 63 cmake_policy(VERSION 3.13) 65 set("${CMAKE_FIND_PACKAGE_NAME}_AVAILABLE_COMPONENTS" "WrappingTools;WebPython;WebCore;WebGLExporter;PythonInterpreter;ViewsContext2D;ViewsCore;RenderingUI;loguru;cli11;TestingRendering;ImagingColor;TestingDataModel;TestingCore;SerializationManager;RenderingVolumeAMR;RenderingVolumeOpenGL2;RenderingParallelLIC;RenderingParallel;RenderingVRModels;RenderingMatplotlib;RenderingLICOpenGL2;RenderingGridAxes;RenderingContextOpenGL2;RenderingCellGrid;ImagingMath;ParallelMPI4Py;mpi4py;ImagingFourier;IOXdmf2;IOXMLParser;libxml2;xdmf2;IOVeraOut;IOVPIC;vpic;IOTecplotTable;utf8;IOTRUCHAS;IOSegY;IOParallelXML;IOParallelNetCDF;IOParallelLSDyna;IOLSDyna;IOParallelExodus;IOExodus;exodusII;IOPLY;IOPIO;IOOggTheora;theora;ogg;IOOMF;IONetCDF;IOParallel;IOMPIImage;IOLANLX3D;IOImport;IOIOSS;ioss;IOHDF;IOHDFTools;IOH5part;h5hut;IOH5Rage;IOFLUENTCFF;IOMovie;IOFDS;IOInfovis;InfovisCore;IOExportGL2PS;RenderingGL2PSOpenGL2;gl2ps;png;netcdf;IOEnSight;IOERF;IOCityGML;IOChemistry;IOCatalystConduit;catalyst;IOCONVERGECFD;IOCGNSReader;cgns;IOAvmesh;IOAsynchronous;IOExport;RenderingVtkJS;IOGeometry;RenderingSceneGraph;IOAMR;hdf5;GeovisCore;libproj;sqlite;InteractionWidgets;RenderingVolume;RenderingAnnotation;InteractionStyle;ImagingHybrid;FiltersTensor;FiltersTemporal;FiltersPython;FiltersProgrammable;FiltersPoints;FiltersParallelVerdict;FiltersParallelStatistics;FiltersParallelGeometry;FiltersParallelFlowPaths;FiltersParallelDIY2;ParallelDIY;FiltersImaging;ImagingGeneral;FiltersGeometryPreview;FiltersFlowPaths;eigen;FiltersAMR;FiltersParallelMPI;FiltersParallel;FiltersGeneric;FiltersTexture;FiltersModeling;ParallelMPI;mpi;DomainsChemistryOpenGL2;RenderingOpenGL2;RenderingHyperTreeGrid;x11;glad;RenderingLabel;octree;FiltersHybrid;DomainsChemistry;WrappingPythonCore;Python;ChartsCore;FiltersExtraction;diy2;IOXML;expat;ParallelCore;IOLegacy;IOCellGrid;FiltersCellGrid;token;FiltersStatistics;FiltersHyperTree;ImagingSources;IOImage;DICOMParser;jpeg;metaio;tiff;IOCore;lzma;fast_float;lz4;RenderingContext2D;RenderingFreeType;freetype;kwiml;zlib;RenderingCore;jsoncpp;FiltersSources;CommonColor;AcceleratorsVTKmFilters;AcceleratorsVTKmCore;AcceleratorsVTKmDataModel;ImagingCore;FiltersGeneral;FiltersVerdict;verdict;FiltersGeometry;CommonComputationalGeometry;FiltersCore;FiltersReduction;CommonCache;CommonExecutionModel;vtkviskores;CommonDataModel;pegtl;pugixml;CommonSystem;CommonMisc;exprtk;CommonTransforms;CommonMath;kissfft;CommonCore;scn;vtksys;nlohmannjson;fmt;WrapHierarchy;WrapPython;WrapPythonInit;ParseJava;WrapJava") 67 set(_vtk_temp_variables) 68 set(_vtk_real_components) 69 foreach (_vtk_component IN LISTS "${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS") 70 # Handle component requests that are not VTK. 71 if (NOT _vtk_component IN_LIST "${CMAKE_FIND_PACKAGE_NAME}_AVAILABLE_COMPONENTS") 72 set("${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND" 0) 73 list(APPEND "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_NOT_FOUND_MESSAGE" 74 "The ${_vtk_component} component is not recognized.") 76 if (_vtk_component MATCHES "^vtk" AND 77 NOT _vtk_component STREQUAL "vtksys" AND 78 NOT _vtk_component STREQUAL "vtkjava") 79 string(SUBSTRING "${_vtk_component}" 3 -1 _vtk_actual_component) 80 if (NOT ${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION) 81 if (NOT ${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY) 83 "The new name for the '${_vtk_component}
' component is " 84 "'${_vtk_actual_component}
'") 86 elseif (${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION VERSION_LESS "8.90") 87 # Ignore for compatibility. 90 "The new name for the '${_vtk_component}
' component is " 91 "'${_vtk_actual_component}
'. By requesting at least version 8.90, the " 92 "new component names are now required.") 94 list(APPEND _vtk_real_components 95 "${_vtk_actual_component}") 96 list(APPEND _vtk_temp_variables 97 "${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED_${_vtk_actual_component}") 98 set("${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED_${_vtk_actual_component}" 99 "${${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED_${_vtk_component}}") 100 unset(_vtk_actual_component) 102 list(APPEND _vtk_real_components 106 unset(_vtk_component) 107 set("${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS" 108 ${_vtk_real_components}) 109 unset(_vtk_real_components) 111 set("${CMAKE_FIND_PACKAGE_NAME}_CMAKE_MODULE_PATH_save" "${CMAKE_MODULE_PATH}") 112 list(INSERT CMAKE_MODULE_PATH 0 113 "${CMAKE_CURRENT_LIST_DIR}") 115 set("${CMAKE_FIND_PACKAGE_NAME}_CMAKE_PREFIX_PATH_save" "${CMAKE_PREFIX_PATH}") 116 include("${CMAKE_CURRENT_LIST_DIR}/vtk-prefix.cmake") 117 set("${CMAKE_FIND_PACKAGE_NAME}_PREFIX_PATH" 118 "${_vtk_module_import_prefix}") 119 unset(_vtk_module_import_prefix) 120 list(INSERT CMAKE_PREFIX_PATH 0 121 "${${CMAKE_FIND_PACKAGE_NAME}_PREFIX_PATH}") 123 set("${CMAKE_FIND_PACKAGE_NAME}_VERSION" "9.7.20260825") 124 set("${CMAKE_FIND_PACKAGE_NAME}_MAJOR_VERSION" "9") 125 set("${CMAKE_FIND_PACKAGE_NAME}_MINOR_VERSION" "7") 126 set("${CMAKE_FIND_PACKAGE_NAME}_BUILD_VERSION" "20260825") 127 # VTK_DEPRECATED_IN_9_7_0 128 set("${CMAKE_FIND_PACKAGE_NAME}_LEGACY_REMOVE" "0") 129 set("${CMAKE_FIND_PACKAGE_NAME}_AUTOINIT_INCLUDE" "\"vtkAutoInit.h\"") 130 set("${CMAKE_FIND_PACKAGE_NAME}_SMP_BACKENDS" "STDThread;Sequential") 132 unset("${CMAKE_FIND_PACKAGE_NAME}_FOUND") 133 set("${CMAKE_FIND_PACKAGE_NAME}_HAS_VISKORES" "ON") 134 set("${CMAKE_FIND_PACKAGE_NAME}_HAS_VTKm" "ON") 135 if (${CMAKE_FIND_PACKAGE_NAME}_HAS_VISKORES) 136 if (NOT "OFF") # VTK_MODULE_USE_EXTERNAL_VTK_vtkviskores 137 find_package(Viskores 138 PATHS "${CMAKE_CURRENT_LIST_DIR}/viskores" 140 if (NOT Viskores_FOUND) 141 set("${CMAKE_FIND_PACKAGE_NAME}_FOUND" 0) 142 set("${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE" "VTK internal enabled Viskores cannot be founded") 147 include("${CMAKE_CURRENT_LIST_DIR}/vtkCMakeBackports.cmake") 148 include("${CMAKE_CURRENT_LIST_DIR}/${CMAKE_FIND_PACKAGE_NAME}-targets.cmake") 149 include("${CMAKE_CURRENT_LIST_DIR}/${CMAKE_FIND_PACKAGE_NAME}-vtk-module-properties.cmake") 151 include("${CMAKE_CURRENT_LIST_DIR}/vtk-find-package-helpers.cmake" OPTIONAL) 153 # Ensure that the right OpenGL preference is in place when finding the OpenGL 155 if (0) # vtk_opengl_preference_set 156 if (DEFINED OpenGL_GL_PREFERENCE) 157 set("${CMAKE_FIND_PACKAGE_NAME}_OpenGL_GL_PREFERENCE_save" "${OpenGL_GL_PREFERENCE}") 159 set(OpenGL_GL_PREFERENCE "") 162 # Ensure that python is found based on location, not on version 163 # See https://cmake.org/cmake/help/latest/module/FindPython.html 164 if (DEFINED Python3_FIND_STRATEGY) 165 set("${CMAKE_FIND_PACKAGE_NAME}_Python3_FIND_STRATEGY_save" "${Python3_FIND_STRATEGY}") 167 set(Python3_FIND_STRATEGY LOCATION) 169 # Ensures that the OpenGL::GLES3 is found. 170 include("${CMAKE_CURRENT_LIST_DIR}/vtkMobileDevices.cmake") 171 include("${CMAKE_CURRENT_LIST_DIR}/${CMAKE_FIND_PACKAGE_NAME}-vtk-module-find-packages.cmake") 173 if (0) # vtk_opengl_preference_set 174 if (DEFINED "${CMAKE_FIND_PACKAGE_NAME}_OpenGL_GL_PREFERENCE_save") 175 set(OpenGL_GL_PREFERENCE "${${CMAKE_FIND_PACKAGE_NAME}_OpenGL_GL_PREFERENCE_save}") 176 unset("${CMAKE_FIND_PACKAGE_NAME}_OpenGL_GL_PREFERENCE_save") 178 unset(OpenGL_GL_PREFERENCE) 182 if (DEFINED "${CMAKE_FIND_PACKAGE_NAME}_Python3_FIND_STRATEGY_save") 183 set(Python3_FIND_STRATEGY "${${CMAKE_FIND_PACKAGE_NAME}_Python3_FIND_STRATEGY_save}") 184 unset("${CMAKE_FIND_PACKAGE_NAME}_Python3_FIND_STRATEGY_save") 186 unset(Python3_FIND_STRATEGY) 189 set(VTK_OPENGL_HAS_EGL "ON") 190 set(VTK_OPENGL_USE_GLES "OFF") 192 if (APPLE AND NOT APPLE_IOS) 193 set(VTK_USE_COCOA "OFF") 196 if (TARGET VTK::RenderingVR) 197 set("${CMAKE_FIND_PACKAGE_NAME}_ENABLE_VR_COLLABORATION" "") 200 if () # VTK_QT_VERSION 201 set("${CMAKE_FIND_PACKAGE_NAME}_QT_VERSION" "") 205 set("${CMAKE_FIND_PACKAGE_NAME}_QML_DIR" "${${CMAKE_FIND_PACKAGE_NAME}_PREFIX_PATH}/") 208 include("${CMAKE_CURRENT_LIST_DIR}/vtkModule.cmake") 209 include("${CMAKE_CURRENT_LIST_DIR}/vtkEncodeString.cmake") 210 include("${CMAKE_CURRENT_LIST_DIR}/vtkHashSource.cmake") 211 include("${CMAKE_CURRENT_LIST_DIR}/vtkObjectFactory.cmake") 213 include("${CMAKE_CURRENT_LIST_DIR}/vtkModuleJson.cmake") 215 set("${CMAKE_FIND_PACKAGE_NAME}_PYTHON_VERSION" "3") 216 set("${CMAKE_FIND_PACKAGE_NAME}_WRAP_PYTHON" "ON") 217 if (${CMAKE_FIND_PACKAGE_NAME}_WRAP_PYTHON) 218 include("${CMAKE_CURRENT_LIST_DIR}/VTKPython-targets.cmake") 219 include("${CMAKE_CURRENT_LIST_DIR}/vtkmodules-vtk-python-module-properties.cmake") 220 include("${CMAKE_CURRENT_LIST_DIR}/vtkModuleWrapPython.cmake") 221 set("${CMAKE_FIND_PACKAGE_NAME}_PYTHONPATH" "lib64/python3.13/site-packages") 224 set("${CMAKE_FIND_PACKAGE_NAME}_WRAP_JAVA" "") 225 if (${CMAKE_FIND_PACKAGE_NAME}_WRAP_JAVA) 226 include("${CMAKE_CURRENT_LIST_DIR}/vtkModuleWrapJava.cmake") 228 if () # VTK_JAVA_JOGL_COMPONENT 229 set(_vtk_find_jogl_args) 230 if (${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY) 231 list(APPEND _vtk_find_jogl_args QUIET) 233 find_package(JOGL ${_vtk_find_jogl_args}) 234 unset(_vtk_find_jogl_args) 237 include("${CMAKE_CURRENT_LIST_DIR}/VTKJava-targets.cmake") 238 set("${CMAKE_FIND_PACKAGE_NAME}_vtkjava_FOUND" 1) 240 set("${CMAKE_FIND_PACKAGE_NAME}_vtkjava_FOUND" 0) 241 set("${CMAKE_FIND_PACKAGE_NAME}_vtkjava_NOT_FOUND_MESSAGE" 242 "JOGL was not found") 247 set("${CMAKE_FIND_PACKAGE_NAME}_WRAP_JAVASCRIPT" "") 248 if (${CMAKE_FIND_PACKAGE_NAME}_WRAP_JAVASCRIPT) 249 include("${CMAKE_CURRENT_LIST_DIR}/VTKJavaScript-targets.cmake") 250 include("${CMAKE_CURRENT_LIST_DIR}/vtkModuleWrapJavaScript.cmake") 253 set("${CMAKE_FIND_PACKAGE_NAME}_WRAP_SERIALIZATION" "ON") 254 include("${CMAKE_CURRENT_LIST_DIR}/vtkModuleSerialization.cmake") 256 set(_vtk_search_components 257 ${${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS}) 258 if (NOT _vtk_search_components) 259 set(_vtk_search_components 260 ${${CMAKE_FIND_PACKAGE_NAME}_AVAILABLE_COMPONENTS}) 262 list(REMOVE_ITEM _vtk_search_components 263 # These components need to always be requested explicitly since they are 265 WrapHierarchy;vtkbuild;vtkplatform;vtkpython;pvtkpython;WrapPython;WrapPythonInit;vtkjava;ParseJava;WrapJava;vtkWebAssemblyTestLinkOptions) 266 set(_vtk_components_to_check) 267 foreach (_vtk_component IN LISTS _vtk_search_components) 268 if (DEFINED "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND") 269 # It was already not-found (likely due to `find-package` failures). 270 elseif (TARGET "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}") 271 list(APPEND _vtk_components_to_check 274 set("${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND" 0) 275 list(APPEND "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_NOT_FOUND_MESSAGE" 276 "The ${_vtk_component} component is not available.") 279 unset(_vtk_component) 280 unset(_vtk_search_components) 282 while (_vtk_components_to_check) 283 list(GET _vtk_components_to_check 0 _vtk_component) 284 list(REMOVE_AT _vtk_components_to_check 0) 285 if (DEFINED "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND") 286 # We've already made a determiniation.
290 get_property(_vtk_public_dependencies
291 TARGET "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}
" 292 PROPERTY "INTERFACE_vtk_module_depends
") 293 get_property(_vtk_private_dependencies 294 TARGET "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}
" 295 PROPERTY "INTERFACE_vtk_module_private_depends
") 296 get_property(_vtk_optional_dependencies 297 TARGET "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}
" 298 PROPERTY "INTERFACE_vtk_module_optional_depends
") 299 set(_vtk_dependencies 300 ${_vtk_public_dependencies} 301 ${_vtk_private_dependencies}) 302 foreach (_vtk_optional_dependency IN LISTS _vtk_optional_dependencies) 303 if (TARGET "${_vtk_optional_dependency}
") 304 list(APPEND _vtk_dependencies 305 "${_vtk_optional_dependency}
") 308 unset(_vtk_public_dependencies) 309 unset(_vtk_private_dependencies) 310 unset(_vtk_optional_dependency) 311 unset(_vtk_optional_dependencies) 313 string(REPLACE "${CMAKE_FIND_PACKAGE_NAME}::
" "" _vtk_dependencies "${_vtk_dependencies}
") 314 set(_vtk_all_dependencies_checked TRUE) 315 foreach (_vtk_dependency IN LISTS _vtk_dependencies) 316 if (DEFINED "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_dependency}_FOUND
") 317 if (NOT ${CMAKE_FIND_PACKAGE_NAME}_${_vtk_dependency}_FOUND) 318 set("${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND
" 0) 319 list(APPEND "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_NOT_FOUND_MESSAGE
" 320 "Failed to find the ${_vtk_dependency}
component.
") 323 # Check its dependencies. 324 list(APPEND _vtk_components_to_check 325 "${_vtk_dependency}
") 326 set(_vtk_all_found FALSE) 329 if (NOT DEFINED "${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND
") 330 if (_vtk_all_dependencies_checked) 331 set("${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND
" 1) 333 list(APPEND _vtk_components_to_check 337 unset(_vtk_all_dependencies_checked) 338 unset(_vtk_dependency) 339 unset(_vtk_dependencies) 341 unset(_vtk_component) 342 unset(_vtk_components_to_check) 344 set(_vtk_missing_components) 345 foreach (_vtk_component IN LISTS "${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS
") 346 if (NOT ${CMAKE_FIND_PACKAGE_NAME}_${_vtk_component}_FOUND AND ${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED_${_vtk_component}) 347 list(APPEND _vtk_missing_components 352 if (_vtk_missing_components) 353 list(REMOVE_DUPLICATES _vtk_missing_components) 354 list(SORT _vtk_missing_components) 355 string(REPLACE ";
" ",
" _vtk_missing_components "${_vtk_missing_components}
") 356 set("${CMAKE_FIND_PACKAGE_NAME}_FOUND
" 0) 357 set("${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE
" 358 "Could not find the ${CMAKE_FIND_PACKAGE_NAME}
package with the following required components: ${_vtk_missing_components}.")
360 unset(_vtk_missing_components)
362 set("${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES")
363 if (NOT DEFINED "${CMAKE_FIND_PACKAGE_NAME}_FOUND")
364 # If nothing went wrong, we've successfully found the package.
365 set("${CMAKE_FIND_PACKAGE_NAME}_FOUND" 1)
366 set(_vtk_found_components
367 ${${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS})
368 if (NOT _vtk_found_components)
369 set(_vtk_found_components
370 ${${CMAKE_FIND_PACKAGE_NAME}_AVAILABLE_COMPONENTS})
372 list(REMOVE_ITEM _vtk_found_components
373 # These components need to always be requested explicitly since they are
375 WrapHierarchy;vtkbuild;vtkplatform;vtkpython;pvtkpython;WrapPython;WrapPythonInit;vtkjava;ParseJava;WrapJava;vtkWebAssemblyTestLinkOptions)
376 # Build the `_LIBRARIES` variable.
377 foreach (_vtk_component IN LISTS _vtk_found_components)
378 if (TARGET
"${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}")
379 list(APPEND
"${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES" 380 "${CMAKE_FIND_PACKAGE_NAME}::${_vtk_component}")
383 unset(_vtk_component)
384 unset(_vtk_found_components)
387 set(CMAKE_PREFIX_PATH "${${CMAKE_FIND_PACKAGE_NAME}_CMAKE_PREFIX_PATH_save}
") 388 unset("${CMAKE_FIND_PACKAGE_NAME}_CMAKE_PREFIX_PATH_save
") 390 set(CMAKE_MODULE_PATH "${${CMAKE_FIND_PACKAGE_NAME}_CMAKE_MODULE_PATH_save}
") 391 unset("${CMAKE_FIND_PACKAGE_NAME}_CMAKE_MODULE_PATH_save
") 393 foreach (_vtk_temp_variable IN LISTS _vtk_temp_variables) 394 unset("${_vtk_temp_variable}
") 396 unset(_vtk_temp_variable) 397 unset(_vtk_temp_variables) 399 # Compatibility with old code. 400 if (NOT ${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION) 401 set(VTK_USE_FILE "${CMAKE_CURRENT_LIST_DIR}/
vtk-use-file-deprecated.cmake
") 402 elseif (${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION VERSION_LESS "8.90
") 403 set(VTK_USE_FILE "${CMAKE_CURRENT_LIST_DIR}/
vtk-use-file-compat.cmake
") 405 set(VTK_USE_FILE "${CMAKE_CURRENT_LIST_DIR}/
vtk-use-file-error.cmake
")
#define VTK_BUILD_VERSION
#define VTK_MINOR_VERSION
#define VTK_MAJOR_VERSION