It’s still there. Is it just disabled in your build?
Yes, this is gone. Use the targets (VTK::CommonCore
) instead.
It is no longer automatic because that gave you one autoinit set per find_package
. Now it is done per target. You should do:
target_link_libraries(my_vtk_using_lib ${visibility}VTK::CommonCore ${other_vtk_libs})
vtk_module_autoinit(TARGETS my_vtk_using_lib MODULES VTK::CommonCore ${other_vtk_libs})
The latter call generates the required -D
flags for the module set but just for the targets listed.