Skip to content

Search for dependencies only if they are needed

Unconditionally trying to find GLEW was breaking linking in VTK by overriding the GLEW_LIBRARIES variable (to NOTFOUND on many dashboards).

This change make this CMake code behave more like VTK, which means it shows the option by default and then only if it is on tries to find the dependencies.

Merge request reports