mirror of https://github.com/CGAL/cgal
Revert "Fix CMake warning: remove usage of VTK_USE_FILE"
This reverts commit f39b90670b.
This commit is contained in:
parent
6160887748
commit
df28ddc43a
|
|
@ -68,6 +68,10 @@ endif()
|
|||
|
||||
find_package(VTK QUIET COMPONENTS vtkCommonCore vtkIOCore vtkIOLegacy vtkIOXML vtkFiltersCore vtkFiltersSources)
|
||||
if (VTK_FOUND)
|
||||
if(VTK_USE_FILE)
|
||||
include(${VTK_USE_FILE})
|
||||
endif()
|
||||
|
||||
if ("${VTK_VERSION_MAJOR}" GREATER "5" OR VTK_VERSION VERSION_GREATER 5)
|
||||
if(TARGET VTK::CommonCore)
|
||||
set(VTK_LIBRARIES VTK::CommonCore VTK::IOCore VTK::IOLegacy VTK::IOXML VTK::FiltersCore VTK::FiltersSources)
|
||||
|
|
|
|||
|
|
@ -28,6 +28,9 @@ endif()
|
|||
|
||||
find_package(VTK QUIET COMPONENTS vtkImagingGeneral vtkIOImage NO_MODULE)
|
||||
if(VTK_FOUND)
|
||||
if(VTK_USE_FILE)
|
||||
include(${VTK_USE_FILE})
|
||||
endif()
|
||||
if("${VTK_VERSION_MAJOR}" GREATER "5" OR VTK_VERSION VERSION_GREATER 5)
|
||||
message(STATUS "VTK found")
|
||||
if(TARGET VTK::IOImage)
|
||||
|
|
|
|||
Loading…
Reference in New Issue