PARAVIEW_EXTERNAL_PLUGIN_DIRS fails to build any plugin
PARAVIEW_EXTERNAL_PLUGIN_DIRS does not seem to be able to build any plugin, the compiler is unable to find includes and libraries from ParaView.
How to reproduce :
- Download and extract this very simple dummy plugin
- Build ParaView
- run ccmake
- Set PARAVIEW_EXTERNAL_PLUGIN_DIRS to the location of the dummy plugin
- configure
- check that BUILD_PLUGIN_ReaderXMLOnly is ON
- configure, generate
- ninja
[501/560] Building CXX object ExternalPlugins/ReaderXMLOnly/CMakeFiles/ReaderXMLOnly.dir/ReaderXMLOnly_Plugin.cxx.o
FAILED: ExternalPlugins/ReaderXMLOnly/CMakeFiles/ReaderXMLOnly.dir/ReaderXMLOnly_Plugin.cxx.o
/usr/bin/c++ -DH5_BUILT_AS_DYNAMIC_LIB -DReaderXMLOnly_EXPORTS -I. -I/home/glow/work/vtkSandBox/ReaderXMLOnly -IExternalPlugins/ReaderXMLOnly -IVTK/Utilities/KWSys -IVTK/ThirdParty/jsoncpp/vtkjsoncpp/json -I/home/glow/work/paraview/paraview/VTK/ThirdParty/exodusII/vtkexodusII/include -IVTK/ThirdParty/exodusII/vtkexodusII/include -IVTK/ThirdParty/hdf5/vtkhdf5/src -I/home/glow/work/paraview/paraview/VTK/ThirdParty/hdf5/vtkhdf5/src -IVTK/ThirdParty/hdf5/vtkhdf5/hl/src -I/home/glow/work/paraview/paraview/VTK/ThirdParty/hdf5/vtkhdf5/hl/src -Wall -Wextra -Wshadow -Woverloaded-virtual -Wno-deprecated -Wno-strict-overflow -Wno-array-bounds -Wunreachable-code -g -fPIC -std=gnu++11 -MD -MT ExternalPlugins/ReaderXMLOnly/CMakeFiles/ReaderXMLOnly.dir/ReaderXMLOnly_Plugin.cxx.o -MF ExternalPlugins/ReaderXMLOnly/CMakeFiles/ReaderXMLOnly.dir/ReaderXMLOnly_Plugin.cxx.o.d -o ExternalPlugins/ReaderXMLOnly/CMakeFiles/ReaderXMLOnly.dir/ReaderXMLOnly_Plugin.cxx.o -c ExternalPlugins/ReaderXMLOnly/ReaderXMLOnly_Plugin.cxx
In file included from ExternalPlugins/ReaderXMLOnly/ReaderXMLOnly_Plugin.cxx:32:
ExternalPlugins/ReaderXMLOnly/ReaderXMLOnly_Plugin.h:43:10: fatal error: vtkConfigure.h: No such file or directory
#include "vtkConfigure.h"
^~~~~~~~~~~~~~~~
compilation terminated.
[502/560] Building CXX object Qt/Python/CMakeFiles/pqPython.dir/pqPythonManager.cxx.o
ninja: build stopped: subcommand failed.