Skip to content

Commit 0e119a6

Browse files
committed
prefer modern VTK component names
1 parent 97f82c2 commit 0e119a6

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,10 @@ if (NOT COVISE_BUILD_ONLY_FILE)
367367
endif()
368368

369369
if (NOT COVISE_BUILD_ONLY_ODDLOT AND NOT COVISE_BUILD_ONLY_COVER)
370-
covise_find_package(VTK COMPONENTS vtkIOLegacy vtkIOXML vtkFiltersCore vtkCommonCore vtkImagingCore vtkCommonDataModel vtkCommonExecutionModel NO_MODULE)
370+
covise_find_package(VTK COMPONENTS IOLegacy IOXML FiltersCore CommonCore ImagingCore CommonDataModel CommonExecutionModel NO_MODULE)
371+
if (NOT VTK_FOUND)
372+
covise_find_package(VTK COMPONENTS vtkIOLegacy vtkIOXML vtkFiltersCore vtkCommonCore vtkImagingCore vtkCommonDataModel vtkCommonExecutionModel NO_MODULE)
373+
endif()
371374
endif()
372375

373376
if (APPLE)

cmake/FindCOVISE.cmake

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,14 @@ macro(covise_find_component comp)
162162
set(complib coVtk)
163163
set(compvar VTK)
164164
covise_find_package(VTK
165-
COMPONENTS vtkIOLegacy vtkFiltersCore vtkCommonCore vtkImagingCore vtkCommonDataModel vtkCommonExecutionModel
166-
NO_MODULE
167-
QUIET)
165+
COMPONENTS IOLegacy FiltersCore CommonCore ImagingCore CommonDataModel CommonExecutionModel
166+
NO_MODULE)
167+
if (NOT VTK_FOUND)
168+
covise_find_package(VTK
169+
COMPONENTS vtkIOLegacy vtkFiltersCore vtkCommonCore vtkImagingCore vtkCommonDataModel vtkCommonExecutionModel
170+
NO_MODULE
171+
QUIET)
172+
endif()
168173
if (VTK_FOUND)
169174
set(ADD_LIBS ${VTK_LIBRARIES})
170175
endif()

0 commit comments

Comments
 (0)