[help!] Error while linking in SlicerOpenCV

I’m working on the linux build of SlicerOpenCV.

All of the dependencies build fine, and I get the following error when linking the extension

[ 92%] Linking CXX executable ../../../bin/qSlicerOpenCVModuleCxxTests
/usr/bin/ld: ../../../bin/qSlicerOpenCVModuleCxxTests: hidden symbol `deflate' in /home/ROBARTS/arankin/SCVR/OpenCV-install/lib/opencv4/3rdparty/libzlib.a(deflate.c.o) is referenced by DSO
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

Preliminary google searches indicate that this is an error in static and dynamic linking, with a dynamic library (the extension) trying to link to a static library (libzlib) with a hidden symbol.

Should I configure CMake to tell opencv to link against the VTK zlib library? Any other ideas?

@jcfr @lassoan