ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken. While building ParaView to execute Qt custom apps

I have been trying to build ParaView to test the custom apps examples at https://gitlab.kitware.com/paraview/paraview/tree/master/Examples/CustomApplications on MacOS.

I have followed the site instructions at https://gitlab.kitware.com/paraview/paraview-superbuild

Then executed

$ mkdir pv
$ cd pv
$ git clone https://gitlab.kitware.com/paraview/paraview-superbuild.git
$ cd paraview-superbuild
$ git fetch origin # ensure you have the latest state from the main repo
$ git submodule update

$ cd ..
$ mkdir build
$ cd build
$ cmake ../paraview-superbuild
$ ccmake -DCMAKE_OSX_SDK=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk ../paraview-superbuild

I enabled:

ENABLE_qt5
ENABLE_python
ENABLE_python2

Then

$ make

Any ideas on what should I do?

Sorry for the delay. For macOS, I suggest downloading binaries from Qt upstream and using them rather than trying to build it from the superbuild. https://download.qt.io/official_releases/qt/