Skip to content

Commit

Permalink
COMP: Specify VTK component using updated convention
Browse files Browse the repository at this point in the history
This commit fixes warnings like the following:

  CMake Deprecation Warning at /path/to/Slicer-Release/VTK-build/lib/cmake/vtk-9.1/vtk-config.cmake:75 (message):
    The new name for the 'vtkIOLegacy' component is 'IOLegacy'
  • Loading branch information
jcfr committed Jan 13, 2023
1 parent 22e2907 commit 1990f30
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions UKFTractography.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ include(${ITK_USE_FILE})
#-----------------------------------------------------------------------------
set(VTK_FOUND OFF)
find_package(VTK COMPONENTS
vtkCommonSystem
vtkCommonCore
vtkCommonSystem
vtkCommonMath
vtkCommonMisc
vtkCommonTransforms
vtkIOLegacy
vtkIOXML
REQUIRED)
CommonSystem
CommonCore
CommonSystem
CommonMath
CommonMisc
CommonTransforms
IOLegacy
IOXML
REQUIRED
)
if(VTK_USE_FILE)
include(${VTK_USE_FILE})
endif()
Expand Down

0 comments on commit 1990f30

Please sign in to comment.