ParaView doesn't compile due to missing documentation header
I am trying to compile ParaView, I have tried master and 5.12-RC2 branches. In both cases, there is an issue with a missing header
/usr/bin/c++ -DFMT_SHARED -DPARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION=1 -DPARAVIEW_USE_MATERIALEDITOR=0 -DPARAVIEW_USE_PYTHON=0 -DPROTOBUF_USE_DLLS -DQT_CORE5COMPAT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_OPENGLWIDGETS_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -Dkiss_fft_scalar=double -I/home/jjcasmar/seddi/projects/paraview/build/build/Clients/ParaView/paraview_autogen/include -I/home/jjcasmar/seddi/projects/paraview/Clients/ParaView
...
-I/home/jjcasmar/seddi/projects/paraview/build/build/Clients/ParaView ParaViewMainWindow.cxx.o -MF Clients/ParaView/CMakeFiles/paraview.dir/ParaViewMainWindow.cxx.o.d -o Clients/ParaView/CMakeFiles/paraview.dir/ParaViewMainWindow.cxx.o -c /home/jjcasmar/seddi/projects/paraview/Clients/ParaView/ParaViewMainWindow.cxx
/home/jjcasmar/seddi/projects/paraview/Clients/ParaView/ParaViewMainWindow.cxx:41:10: fatal error: ParaViewDocumentationInitializer.h: No such file or directory
41 | #include "ParaViewDocumentationInitializer.h"
The file is looking for is under the ParaView/Documentation directory,
find ../.. -iname ParaViewDocumentationInitializer.h
../../Clients/ParaView/Documentation/ParaViewDocumentationInitializer.h
but that directory is not included in the included directories.
Can be fixed by not compiling the documentation
cmake_dependent_option(PARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION
"Build the ParaView help menu documentation for ParaView and its plugins" ON
"PARAVIEW_USE_QT" ON)
mark_as_advanced(PARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION)
...
if (PARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION)
#------------------------------------------------------------------------------
# Build Online-Help (aka Embedded Help) for the ParaView application.
# This is done after the above piece of code that sets the application_gui_xmls
# variable. Documentation/CMakeLists.txt depends on it.
add_subdirectory(Documentation)
endif ()
but the option is not exposed in CMake