Issue finding OSMesa library when compiling Damaris with Paraview support when Paraview has CATALYST_RENDERING support
CMake issues the error:
CMake Error at /scratch/project/dd-23-66/local/lib64/cmake/paraview-5.11/vtk/VTK-targets.cmake:583 (set_target_properties):
The link interface of target "VTK::opengl" contains:
OSMesa::OSMesa
but the target was not found
A fix is needed to be able to check what kind of Paraview installation was done (checking the value of -DPARAVIEW_BUILD_EDITION= when paraview was configured by cmake).
One option is to use -DPARAVIEW_BUILD_EDITION="CATALYST" and not "CATALYST_RENDERING"
Another option is to add the Mesa library support, the Damaris CMakeList.txt file needs RenderingOpenGL2
library added to the list of VTK components ( this list only in Damaris v1.9.1+ and may need to be added to versions prior).
If this is an issue for earlier Damaris versions, adding a list of VTK libraries to find can be added:
if(ENABLE_CATALYST)
find_package(VTK COMPONENTS
CommonColor
CommonCore
CommonDataModel
CommonExecutionModel
CommonSystem
CommonMisc
RenderingOpenGL2
ParallelMPI
IOParallelXML
IOXML
)
endif(ENABLE_CATALYST)
The lib/DamarisConfig.cmake file may also need to be modified with the additional VTK library.