Test dependencies can want modules that don't get enabled
Test dependencies can end up requesting modules that never get provided. This happens when a module is toposorted after one which has been scanned, but has a test dependency on a module that had not been decided yet. To fix, a followup scan should be performed using modules requested but for which a _provided
boolean has not been set at all yet.
How do I know I have this issue?
If you enable testing and you get an error similar to:
CMake Error at CMake/vtkModule.cmake:2416 (message):
The VTK::somedep dependency is missing for VTK::somedepender.
Call Stack (most recent call first):
CMakeLists.txt:335 (vtk_module_build)
that goes away when testing is disabled.
I'm seeing this issue, what do I do?
You can explicitly enable the VTK::somedepender
module with -DVTK_MODULE_ENABLE_VTK_somedepender=WANT
. This will enable the module explicitly and request any dependencies it needs. Alternatively, you can enable the VTK::somedep
module, but this may need to be repeated for each missing dependency.
Edited by Ben Boeckel