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