Qt5 xmlpatterns issue when building ParaView master on Ubuntu 18.04

I run into this issue when compiling ParaView master with CMake 3.19.0-rc1 (from Kitware’s APT repo) and gcc 8 (from synaptic):

ninja
[21/504] Generating documentation for paraview_doc
FAILED: Clients/ParaView/Documentation/paraview_doc.xslt 
cd /home/wgodoy/workspace/paraview-build/Clients/ParaView/Documentation && /usr/bin/cmake -Dxmlpatterns=/usr/bin/xmlpatterns -Doutput_dir=/home/wgodoy/workspace/paraview-build/Clients/ParaView/Documentation -Doutput_file=/home/wgodoy/workspace/paraview-build/Clients/ParaView/Documentation/paraview_doc.xslt -Dxmls_file=/home/wgodoy/workspace/paraview-build/Clients/ParaView/Documentation/CMakeFiles/paraview_doc-xmls.txt -D_paraview_generate_proxy_documentation_run=ON -P /home/wgodoy/workspace/paraview/CMake/ParaViewClient.cmake
CMake Error at /home/wgodoy/workspace/paraview/CMake/ParaViewClient.cmake:587 (message):
  Failed to convert servermanager XML: xmlpatterns: could not exec
  '/usr/lib/qt5/bin/xmlpatterns': No such file or directory

[37/504] Building CXX object Adaptors/Particle/CMakeFiles/AdaptorsParticle.dir/vtkParticlePipeline.cxx.o
ninja: build stopped: subcommand failed.

Even though the xmlpatterns filepath is set in CMakeCache to the right location:

grep xmlpatterns -R .
./CMakeCache.txt://Path to xmlpatterns
./CMakeCache.txt:qt_xmlpatterns_executable:FILEPATH=/usr/bin/xmlpatterns
./CMakeCache.txt://ADVANCED property for variable: qt_xmlpatterns_executable

I tried to copy /usr/bin/xmlpatterns to /usr/lib/qt5/bin/ (a soft link didn’t work), but it seems to fall into an infinite loop at

$ ninja
[456/470] Creating library symlink lib/libpqApplicationComponents-pv5.8.so.1 lib/libpqApplicationComponents-pv5.8.so

$ top
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                             
17933 wgodoy    20   0   14024   1952   1800 R  99.1  0.0   8:45.30 xmlpatterns                                         

Hope it’s enough to reproduce. Thanks in advance!