Skip to content

[CMake] VTK 9.0 deprecation warnings #4046

@SunBlack

Description

@SunBlack

I tested VTK 9.0 on my Windows machine and I'm getting now:

CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkChartsCore' component is 'ChartsCore'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkCommonCore' component is 'CommonCore'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkCommonDataModel' component is 'CommonDataModel'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkCommonExecutionModel' component is
  'CommonExecutionModel'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkFiltersCore' component is 'FiltersCore'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkFiltersExtraction' component is
  'FiltersExtraction'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkFiltersModeling' component is 'FiltersModeling'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkImagingCore' component is 'ImagingCore'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkImagingSources' component is 'ImagingSources'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkInteractionStyle' component is 'InteractionStyle'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkInteractionWidgets' component is
  'InteractionWidgets'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOCore' component is 'IOCore'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOGeometry' component is 'IOGeometry'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOImage' component is 'IOImage'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOLegacy' component is 'IOLegacy'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOPLY' component is 'IOPLY'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkRenderingAnnotation' component is
  'RenderingAnnotation'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkRenderingLOD' component is 'RenderingLOD'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkViewsContext2D' component is 'ViewsContext2D'
Call Stack (most recent call first):
  CMakeLists.txt:390 (find_package)


CMake Warning (dev) at D:/vtk_install/lib/cmake/vtk-9.0/VTK-targets.cmake:28 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "" will no longer be dereferenced when the policy is
  set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:126 (include)
  CMakeLists.txt:390 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at D:/vtk_install/lib/cmake/vtk-9.0/VTK-targets.cmake:36 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "" will no longer be dereferenced when the policy is
  set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:126 (include)
  CMakeLists.txt:390 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkChartsCore' component is 'ChartsCore'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkCommonCore' component is 'CommonCore'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkCommonDataModel' component is 'CommonDataModel'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkCommonExecutionModel' component is
  'CommonExecutionModel'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkFiltersCore' component is 'FiltersCore'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkFiltersExtraction' component is
  'FiltersExtraction'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkFiltersModeling' component is 'FiltersModeling'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkImagingCore' component is 'ImagingCore'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkImagingSources' component is 'ImagingSources'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkInteractionStyle' component is 'InteractionStyle'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkInteractionWidgets' component is
  'InteractionWidgets'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOCore' component is 'IOCore'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOGeometry' component is 'IOGeometry'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOImage' component is 'IOImage'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOLegacy' component is 'IOLegacy'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkIOPLY' component is 'IOPLY'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkRenderingAnnotation' component is
  'RenderingAnnotation'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkRenderingLOD' component is 'RenderingLOD'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkViewsContext2D' component is 'ViewsContext2D'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake:64 (message):
  The new name for the 'vtkRenderingContextOpenGL' component is
  'RenderingContextOpenGL'
Call Stack (most recent call first):
  CMakeLists.txt:413 (find_package)


CMake Warning at CMakeLists.txt:413 (find_package):
  Found package configuration file:

    D:/vtk_install/lib/cmake/vtk-9.0/vtk-config.cmake

  but it set VTK_FOUND to FALSE so package "VTK" is considered to be NOT
  FOUND.  Reason given by package:

  Could not find the VTK package with the following required components:
  RenderingContextOpenGL.



VTK_MAJOR_VERSION 9, rendering backend: OpenGL
CMake Deprecation Warning at D:/vtk_install/lib/cmake/vtk-9.0/vtk-use-file-deprecated.cmake:1 (message):
  The `VTK_USE_FILE` is no longer used starting with 8.90.
Call Stack (most recent call first):
  CMakeLists.txt:418 (include)

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugType of issueneeds: pr mergeSpecify why not closed/merged yetskill: cmakeSkills/areas of expertise needed to tackle the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions