Strange behavior with plugin module dependencies
The REQUIRES_MODULES
does not seems to work exactly as intended and actually as no effect.
How to reproduce :
- Build ParaView with VRPlugin
- remove
ParaView::pqApplicationComponents
from Plugins/VRPlugin/paraview.plugin - build paraview again, no problem,yet it should not be able to include
#include "pqLoadStateReaction.h"
in pqVRDockPanel.cxx - remove
ParaView::pqApplicationComponent
from Plugins/VRPlugin/CMakeLists.txt and put it back in Plugins/VRPlugin/paraview.plugin - build paraview again
/home/glow/work/paraview/paraviewFirst/paraview/Plugins/VRPlugin/pqVRDockPanel.cxx:39:10: fatal error: pqLoadStateReaction.h: No such file or directory
39 | #include "pqLoadStateReaction.h"
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[22/23] Building CXX object Plugins/VRPlugin/CMakeFiles/VRPlugin.dir/vtkVRSpaceNavigatorGrabWorldStyle.cxx.o
/home/glow/work/paraview/paraviewFirst/paraview/Plugins/VRPlugin/vtkVRSpaceNavigatorGrabWorldStyle.cxx: In member function ‘virtual void vtkVRSpaceNavigatorGrabWorldStyle::HandleAnalog(const vtkVREventData&)’:
/home/glow/work/paraview/paraviewFirst/paraview/Plugins/VRPlugin/vtkVRSpaceNavigatorGrabWorldStyle.cxx:81:14: warning: unused variable ‘orient’ [-Wunused-variable]
81 | double orient[3];
| ^~~~~~
ninja: build stopped: subcommand failed.
It fails on the include when it should have failed when linking.
Is that expected @ben.boeckel ?