Problem with extension .cpp vtk_module_add_module

Hello!

I have a problem with

Severity	Code	Description	Project	File	Line	Suppression State	Details
Error		CMake Error at VTK/CMake/vtkModule.cmake:3393 (add_library):
  Cannot find source file:

    File.cxx

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
  .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
  .f95 .f03 .hip .ispc		vtkModule.cmake	3393

It is called from vtk_module_add_module

However if I try .cxx , it works

VTK currently prefers cxx as a source extension. It’d be possible to support others, but there’s nothing there yet.

You can list the files manually. So instead of:

CLASSES File

Pass:

SOURCES File.cpp
HEADERS File.h