Compiling headless ParaView with OSMesa

Setting ENABLE_paraviewsdk worked for PV and VTK, but I am sorry, I fear that only generated more questions…

  1. Is it possible get headers of all the packages to be also installed under current configuration? Currently a CMake of my Catalyst adaptopr is failing because it cannot find OSMesa headers which are not installed on this machine.
  2. Do I need to set CMAKE_PREFIX_PATH or CMAKE_MODULE_PATH and I do need to cover each subdirectory?
  3. What does DSUPERBUILD_DEBUG_CONFIGURE_STEPS=ON do?

Here’s my current invocation.

cmake \
    -DCMAKE_BUILD_TYPE_paraview=RelWithDebInfo \
    -DPARAVIEW_BUILD_EDITION=CANONICAL \
    -DSUPERBUILD_OFFLINE_BUILD=ON \
    -DENABLE_python3=ON \
    -DENABLE_mpi=ON \
    -DUSE_SYSTEM_mpi=ON \
    -DENABLE_osmesa=ON \
    -DENABLE_llvm=ON \
    -DENABLE_paraviewsdk=ON \
    -DSUPERBUILD_DEBUG_CONFIGURE_STEPS=ON \
    -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \
    ../paraview-superbuild \
    && make download-all \
    && make install